diff options
author | Christoph Helma <helma@in-silico.de> | 2010-01-22 13:15:27 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.de> | 2010-01-22 13:15:27 +0100 |
commit | cd77b6880a7b0d34536e645dd057ceff40705456 (patch) | |
tree | f7fb26a77433f87e989d17e9d1f2ed251ef77eb4 /config.ru | |
parent | 180a017b54bb7858cccb6235e2966162612e7085 (diff) |
central config.ru, logger instead of puts
Diffstat (limited to 'config.ru')
-rw-r--r-- | config.ru | 14 |
1 files changed, 3 insertions, 11 deletions
@@ -1,13 +1,5 @@ require 'rubygems' -require 'sinatra' -require 'application.rb' - -['public','log','tmp'].each do |dir| - FileUtils.mkdir_p dir unless File.exists?(dir) -end - -log = File.new("log/#{ENV["RACK_ENV"]}.log", "a") -$stdout.reopen(log) -$stderr.reopen(log) - +require 'opentox-ruby-api-wrapper' +require 'tasks/config' run Sinatra::Application + |