Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Variations on a theme.
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
public
views
.gitignore
Gemfile
Gemfile.lock
README.md
app.rb
config.ru

README.md

Sinatra-Heroku Template

A template to quickly get Sinatra apps running and served up on Heroku.

Installation

First be sure to have Ruby installed. Then download this template, cd to it, and install the gems

$ bundle install

To run the app locally, install Shotgun and run

    $ gem install shotgun
$ shotgun config.ru

Your app should then be running at http://localhost:9393.

Heroku App Creation

Heroku relies on Git for deploying apps so initialize git for the app.

$ git init
$ git add .
$ git commit -m "Initial Commit"

To create a Heroku app, first be sure you are signed up. Then type the following in Terminal while inside of the project directory.

$ heroku create NAME_OF_YOUR_APP

Once this returns successfully, push your app to Heroku.

$ git push heroku master

And there you are.

Something went wrong with that request. Please try again.