Skip to content

Commit

Permalink
add logging output to rackup
Browse files Browse the repository at this point in the history
  • Loading branch information
zapnap committed Jan 23, 2009
1 parent 3392996 commit 161db75
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion config.ru
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@ require 'application'
set :run, false
set :environment, :production

run Sinatra.application
FileUtils.mkdir_p 'log' unless File.exists?('log')
log = File.new("log/sinatra.log", "a")
STDOUT.reopen(log)
STDERR.reopen(log)

run Sinatra::Application

0 comments on commit 161db75

Please sign in to comment.