diff options
Diffstat (limited to 'config.ru')
-rw-r--r-- | config.ru | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -7,7 +7,7 @@ require 'rack/contrib' FileUtils.mkdir_p 'log' unless File.exists?('log') FileUtils.mkdir_p 'datasets' unless File.exists?('datasets') log = File.new("log/#{ENV["RACK_ENV"]}.log", "a") -#$stdout.reopen(log) +$stdout.reopen(log) $stderr.reopen(log) if ENV['RACK_ENV'] == 'production' @@ -15,6 +15,7 @@ if ENV['RACK_ENV'] == 'production' mail.to 'helma@in-silico.ch' mail.subject '[ERROR] %s' end + elsif ENV['RACK_ENV'] == 'development' use Rack::Reloader use Rack::ShowExceptions |