Skip to content

Instantly share code, notes, and snippets.

@RichGuk
Created September 10, 2009 21:35
Show Gist options
  • Save RichGuk/184847 to your computer and use it in GitHub Desktop.
Save RichGuk/184847 to your computer and use it in GitHub Desktop.
require 'application'
set :run, false
set :environment, :production
FileUtils.mkdir_p 'log' unless File.exists?('log')
log = File.new("log/sinatra.log", "a")
$stdout.reopen(log)
$stderr.reopen(log)
run Sinatra::Application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment