From 378abb7807a306f4f84b091f51f6c1c7f920cfc3 Mon Sep 17 00:00:00 2001 From: Mark Moser Date: Mon, 25 Feb 2019 02:33:42 +0000 Subject: [PATCH] server config --- .gitignore | 3 +++ config.ru | 3 +++ config.yml | 17 +++++++++++++++++ log/.keep | 0 4 files changed, 23 insertions(+) create mode 100644 .gitignore create mode 100644 config.ru create mode 100644 config.yml create mode 100644 log/.keep diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cde2416 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +tmp/ +log/thin.log +*.swp diff --git a/config.ru b/config.ru new file mode 100644 index 0000000..b60cedc --- /dev/null +++ b/config.ru @@ -0,0 +1,3 @@ +require File.expand_path '../main.rb', __FILE__ + +run Sinatra::Application diff --git a/config.yml b/config.yml new file mode 100644 index 0000000..840cd93 --- /dev/null +++ b/config.yml @@ -0,0 +1,17 @@ +--- +chdir: "/home/pi/led-hands-pri" +rackup: "/home/pi/led-hands-pri/config.ru" +user: pi +group: pi +environment: development +address: 0.0.0.0 +port: 3000 +timeout: 30 +log: "/home/pi/led-hands-pri/log/thin.log" +pid: tmp/pids/thin.pid +max_conns: 1024 +max_persistent_conns: 100 +require: [] +wait: 30 +threadpool_size: 20 +daemonize: true diff --git a/log/.keep b/log/.keep new file mode 100644 index 0000000..e69de29