aboutsummaryrefslogtreecommitdiffstats
path: root/config.ru
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2017-06-07 01:37:56 +0900
committerKazuki Yamaguchi <k@rhe.jp>2017-06-07 01:37:56 +0900
commitccf86ca46c6b63088c66a38ec17d18be2d4ff898 (patch)
tree25656458706b237c1b7a47fe0cdae004e6ac4a3f /config.ru
parent039c04f0a63ee2a76d235de257e6f8ec80bfb970 (diff)
downloadpoe-⚙.tar.gz
Diffstat (limited to 'config.ru')
-rw-r--r--config.ru10
1 files changed, 7 insertions, 3 deletions
diff --git a/config.ru b/config.ru
index aabaa3a..e21d5a8 100644
--- a/config.ru
+++ b/config.ru
@@ -1,10 +1,14 @@
-require "rack"
require_relative "lib/poe/webapp"
+require "rack"
+
+# Load configuration from ENV["POE_CONFIG"] or $(pwd)/poe.json
+Poe::Config.load
-use Rack::CommonLogger
if Poe.debug?
use Rack::ShowExceptions
use Rack::Lint
end
-run Sinatra::Application
+use Rack::CommonLogger
+
+run Poe::WebApp