A barebones Sinatra app, which can easily be deployed to Heroku.
Make sure you have Ruby installed. Also, install the Heroku Toolbelt.
$ git clone https://github.com/b0mar/heroku-sinatra-template.git
$ cd heroku-sinatra-template
$ bundle install
$ foreman start web
Your app should now be running on localhost:5000.
$ heroku create
$ git push heroku master
$ heroku open
For more information about using Ruby on Heroku, see these Dev Center articles: