Created
November 16, 2010 01:46
-
-
Save macek/701300 to your computer and use it in GitHub Desktop.
Quick Sinatra App on Heroku
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
# config.ru | |
require 'init' | |
run Sinatra::Application |
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
source 'http://rubygems.org' | |
gem "sinatra" |
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
# 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