-
-
Save bmizerany/2556 to your computer and use it in GitHub Desktop.
Running Sinatra in a rackup file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
require "sinatra" | |
get '/' do | |
'hi' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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