Minimal set of files needed to deploy a Ruby/Sinatra application on
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Heroku Sinatra Scaffold

I use this as a starting point when developing a prototype with sinatra/ruby that I want to run on heroku.

An example of this scaffold is deployed at

How to use this?

This assumes your have already registered with heroku and generally know how heroku works. If not, start by reading the Heroku Quickstart.

Once you have done this, you can create your own heroku application with this scaffold and deploy it at heroku by following these steps:

  1. git clone your_application_folder

     Initialized empty Git repository in .../your_application_folder/.git/
     remote: Counting objects: 14, done.
     remote: Compressing objects: 100% (10/10), done.
     remote: Total 14 (delta 2), reused 0 (delta 0)
     Receiving objects: 100% (14/14), done.
     Resolving deltas: 100% (2/2), done.
  2. cd your_application_folder

  3. heroku create

     Creating random_application_subdomain.... done
     Created |
     Git remote heroku added
  4. git push heroku master

     Counting objects: 14, done.
     Delta compression using up to 2 threads.
     Compressing objects: 100% (8/8), done.
     Writing objects: 100% (14/14), 1.38 KiB, done.
     Total 14 (delta 2), reused 14 (delta 2)
     -----> Heroku receiving push
     -----> Sinatra app detected
     -----> Installing gem sinatra from
            Successfully installed sinatra-1.0
            1 gem installed
            Compiled slug size is 236K
     -----> Launching.... done
   deployed to Heroku
      * [new branch]      master -> master
  5. now check the host that was created by heroku to see your application running (I called the host in the example above)