Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
##
# 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