Skip to content

Instantly share code, notes, and snippets.

@bmizerany
Created November 14, 2008 01:14
Show Gist options
  • Select an option

  • Save bmizerany/24709 to your computer and use it in GitHub Desktop.

Select an option

Save bmizerany/24709 to your computer and use it in GitHub Desktop.
# For blog post at runswithpandas.heroku.com
require File.dirname(__FILE__) + "/../my_sinatra_app"
set :app_file, File.expand_path(File.dirname(__FILE__) + '/../main.rb')
set :public, File.expand_path(File.dirname(__FILE__) + '/../public')
set :views, File.expand_path(File.dirname(__FILE__) + '/../views')
set :env, :production
disable :run, :reload
run Sinatra.application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment