Skip to content

Instantly share code, notes, and snippets.

@hiroshi
Created November 25, 2013 03:47
Show Gist options
  • Save hiroshi/7636022 to your computer and use it in GitHub Desktop.
Save hiroshi/7636022 to your computer and use it in GitHub Desktop.
get '/' do
if @something_goes_wrong
halt 400, "oops"
end
'hello world'
end
require 'bundler'
Bundler.require
$stdout.sync = true # https://devcenter.heroku.com/articles/getting-started-with-ruby#logging
require './app'
run Sinatra::Application
git init
git add app.rb config.ru Gemfile Gemfile.lock
git commit -m 'initial commit'
heroku create your-app-name
git push heroku master
heroku open
source "https://rubygems.org"
gem "sinatra"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment