A Sinatra app using bundler for gem management that is compatible with Heroku. This is adapted from Nathan Humbert's Blog
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Gemfile
application.rb
config.ru
readme.mdown

readme.mdown

Sinatra with Bundler for Heroku

Via: Nathan Humbert's Blog

Running locally

bundle install
rackup

Deploying to Heroku

git init
git add .
git commit -m 'initial commit'
heroku create
git push heroku master

Basic Setup

Gemfile

source :rubygems
gem 'sinatra'

config.ru

require 'rubygems'
require 'bundler'

Bundler.require

require './application'

run Application

application.rb

class Application < Sinatra::Base
  get '/' do
    'hello'
  end
end

The End