diff options
author | Christoph Helma <helma@in-silico.de> | 2010-01-09 18:24:36 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.de> | 2010-01-09 18:24:36 +0100 |
commit | 861d7140fb4c19a0c77f91fb760361e85f33e3fc (patch) | |
tree | 8ea1a1f6d86025b9ec9c4d8fd009ed6a637c0d38 /config.ru | |
parent | 84dc8e5291b25f5f991dfb75f64a7c772444bda2 (diff) |
tasks added
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 |