Skip to content

Instantly share code, notes, and snippets.

@macek
Created November 16, 2010 01:46
Show Gist options
  • Save macek/701300 to your computer and use it in GitHub Desktop.
Save macek/701300 to your computer and use it in GitHub Desktop.
Quick Sinatra App on Heroku
# config.ru
require 'init'
run Sinatra::Application
source 'http://rubygems.org'
gem "sinatra"
# init.rb
require "rubygems"
require "sinatra"
get '/' do
File.read(File.join('public', 'index.html'))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment