Skip to content

Instantly share code, notes, and snippets.

@tobias
Created December 21, 2008 17:19
Show Gist options
  • Save tobias/38720 to your computer and use it in GitHub Desktop.
Save tobias/38720 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'sinatra'
disable :run
set :env, :production
set :raise_errors, true
set :views, File.dirname(__FILE__) + '/views'
set :public, File.dirname(__FILE__) + '/public'
set :app_file, __FILE__
log = File.new("log/sinatra.log", "a")
STDOUT.reopen(log)
STDERR.reopen(log)
require 'urlunwind.rb'
run Sinatra.application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment