diff options
author | Christoph Helma <helma@in-silico.de> | 2009-08-17 11:14:17 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.de> | 2009-08-17 11:14:17 +0200 |
commit | 62ae5207d6dd5f1bd293eaf777d4d0d61e0409c9 (patch) | |
tree | c04eb914d68d65d06079d0a241ad9ba06d6d16e7 /config.ru | |
parent | f66e3c0d90672d9c3cf8d40798290cf8c04be178 (diff) |
production logging enabled, predictions working with documented algorithm
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 |