Skip to content

Instantly share code, notes, and snippets.

@retr0h
Created April 20, 2009 00:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save retr0h/98297 to your computer and use it in GitHub Desktop.
Save retr0h/98297 to your computer and use it in GitHub Desktop.
##
# Rack configuration for use with Phusion Passenger.
#
# Updated with Blake's suggestions from: http://gist.github.com/98711
log = File.new('log/sinatra.log', 'a')
$stdout.reopen(log)
$stderr.reopen(log)
require 'YOUR_APPLICATION'
run Sinatra::Application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment