summaryrefslogtreecommitdiff
path: root/config.ru
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.de>2010-01-09 18:24:36 +0100
committerChristoph Helma <helma@in-silico.de>2010-01-09 18:24:36 +0100
commit861d7140fb4c19a0c77f91fb760361e85f33e3fc (patch)
tree8ea1a1f6d86025b9ec9c4d8fd009ed6a637c0d38 /config.ru
parent84dc8e5291b25f5f991dfb75f64a7c772444bda2 (diff)
tasks added
Diffstat (limited to 'config.ru')
-rw-r--r--config.ru3
1 files changed, 2 insertions, 1 deletions
diff --git a/config.ru b/config.ru
index a7d4daf..16052a1 100644
--- a/config.ru
+++ b/config.ru
@@ -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