Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A Sinatra app using bundler for gem management that is compatible with Heroku. This is adapted from Nathan Humbert's Blog
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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

Something went wrong with that request. Please try again.