diff options
author | Christoph Helma <helma@in-silico.de> | 2009-09-08 14:19:12 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.de> | 2009-09-08 14:19:12 +0200 |
commit | 07e9efa51faece0aa562d7eeab7c61b8ab8d102a (patch) | |
tree | fad31aec011354d409a524ad292cbd336486725a /config.ru | |
parent | 72ab8d7589b9f775b25071bd9e9f6d9727a25bdb (diff) |
adapted for new dataset service
Diffstat (limited to 'config.ru')
-rw-r--r-- | config.ru | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -2,11 +2,9 @@ require 'rubygems' require 'sinatra' require 'application.rb' -if ENV["RACK_ENV"] == 'production' - FileUtils.mkdir_p 'log' unless File.exists?('log') - log = File.new("log/sinatra.log", "a") - $stdout.reopen(log) - $stderr.reopen(log) -end +FileUtils.mkdir_p 'log' unless File.exists?('log') +log = File.new("log/#{ENV["RACK_ENV"]}.log", "a") +$stdout.reopen(log) +$stderr.reopen(log) run Sinatra::Application |