Friday, April 16, 2010

Sinatra step 5

· Created an account in Heroku

· Installed the Heroku gem with the following line:

gem install heroku

· Created a Rackup file called config.ru. The content of this file is as follow:

require 'app'

run Sinatra::Application

· Initialized the repository with

git init

git add .

git commit -m "sinatra and heroku"

· Set up the key pair by typing

ssh-keygen

ssh-keygen -t dsa

· Created my application on Heroku by typing

heroku create

· After that I have entered my heroku credentials (email and password)

· Pushed the code with

git push heroku master

· The application was deployed on Heroku

No comments:

Post a Comment