diff options
author | Christoph Helma <helma@in-silico.de> | 2010-01-22 13:17:13 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.de> | 2010-01-22 13:17:13 +0100 |
commit | 0cafd987e88ef0581f0e15dda217e10033ffc048 (patch) | |
tree | a5590e104de03afb8de31c627b8637a318af477d /config.ru | |
parent | 39c8cc99b5dd6a41abe4e77541f97a9f9136e436 (diff) |
central config.ru, logger instead of puts
Diffstat (limited to 'config.ru')
-rw-r--r-- | config.ru | 24 |
1 files changed, 2 insertions, 22 deletions
@@ -1,25 +1,5 @@ require 'rubygems' -require 'sinatra' -require 'application.rb' -require 'rack' -require 'rack/contrib' - -FileUtils.mkdir_p 'log' unless File.exists?('log') -log = File.new("log/#{ENV["RACK_ENV"]}.log", "a") -$stdout.reopen(log) -$stderr.reopen(log) - -if ENV['RACK_ENV'] == 'production' - use Rack::Reloader - use Rack::ShowExceptions -# use Rack::MailExceptions do |mail| -# mail.to 'helma@in-silico.ch' -# mail.subject '[ERROR] %s' -# end -elsif ENV['RACK_ENV'] == 'development' - use Rack::Reloader - use Rack::ShowExceptions -end - +require 'opentox-ruby-api-wrapper' +require 'tasks/config' run Sinatra::Application |