Hands On Heroku for Sinatra

Introduction

  • Heroku is one of many “cloud app platform”
  • We are going to deploy our app to Heroku

Assumptions

  • You have a working Sinatra application
  • The code is in a PUBLIC github repository
  • Note, you will need to make a few small changes to ready it for Heroku

Setup

  • Go to Heroku
  • Create a new user account (free)
  • Install the Heroku Toolbelt for your platform

Prepare your sinatra app

  • go to your local directory containing the sinatra app

Get your environment set up

  • Use heorku command line to create a new
  • The name of your app is assigned automatically and printed out once you do heroku create

Prepare your application

  • Configure it for rack: make sure you have a config.ru

Create it on Heroku

heroku create
git push heroku master
heroku run rake db:migrate
heroku run rake db:seed
heroku open