Skip to content

Instantly share code, notes, and snippets.

@bmizerany
Forked from pedro/rackup.ru
Created July 25, 2008 23:28
Show Gist options
  • Save bmizerany/2556 to your computer and use it in GitHub Desktop.
Save bmizerany/2556 to your computer and use it in GitHub Desktop.
Running Sinatra in a rackup file
require "rubygems"
require "sinatra"
get '/' do
'hi'
end
require File.dirname(__FILE__) + "/myapp"
set_option :run, false
set_option :env, :production
run Sinatra.application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment