Skip to content

Instantly share code, notes, and snippets.

@entp
Created September 30, 2008 07:53
Show Gist options
  • Save entp/13769 to your computer and use it in GitHub Desktop.
Save entp/13769 to your computer and use it in GitHub Desktop.
# /path/to/seinfeld/app/config.ru
require 'rubygems'
require 'rack'
require 'sinatra'
Sinatra::Application.default_options.update(
:run => false,
:env => :production,
# nfi why this is needed, shouldn't it pick up the pwd???
:views => '/path/to/seinfeld/app/views',
:raise_errors => true
)
log = File.new("sinatra.log", "a")
STDOUT.reopen(log)
STDERR.reopen(log)
# app-specific config stuff
require 'config'
# the sinatra app
require 'seinfeld_calendar'
run Sinatra.application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment