diff options
author | Christoph Helma <helma@in-silico.de> | 2009-08-17 11:12:41 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.de> | 2009-08-17 11:12:41 +0200 |
commit | cab136c6f839ad02a3beed7a4c803bd36449f2a3 (patch) | |
tree | 82ca3ea66abb816c131c499bd5c842296daf1832 /config.ru | |
parent | 82d1ed29a944d26ce95af506da135198bb7fa85d (diff) |
production logging enabled, BBRC in dataset name
Diffstat (limited to 'config.ru')
-rw-r--r-- | config.ru | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -2,4 +2,11 @@ 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 + run Sinatra::Application |