Skip to content

Instantly share code, notes, and snippets.

@joho
Created October 15, 2012 02:52
Show Gist options
  • Save joho/3890597 to your computer and use it in GitHub Desktop.
Save joho/3890597 to your computer and use it in GitHub Desktop.
Teeny-tiny sinatra app on heroku
require 'rubygems'
require 'sinatra'
configure do
set :public_folder, Proc.new { File.join(root, "static") }
enable :sessions
end
get '/' do
erb :index
end
source :rubygems
gem "thin"
gem "sinatra"
group :development do
gem "heroku"
gem "foreman"
end
web: bundle exec ruby app.rb -p $PORT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment