diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2017-06-07 01:37:56 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2017-06-07 01:37:56 +0900 |
commit | ccf86ca46c6b63088c66a38ec17d18be2d4ff898 (patch) | |
tree | 25656458706b237c1b7a47fe0cdae004e6ac4a3f /config.ru | |
parent | 039c04f0a63ee2a76d235de257e6f8ec80bfb970 (diff) | |
download | poe-⚙.tar.gz |
Diffstat (limited to 'config.ru')
-rw-r--r-- | config.ru | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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 |