Wednesday, April 14, 2010

Step 5 - Deployment on Heroku

Step 4: Run Hello World
After installed Ruby, Sinatra and Git, We can run Hello World in localhost by the command "ruby app.rb", after that used a browser and navigate to http://localhost:4567/


Step 5: Deployment on Heroku
There are many steps to do at this step.
First: Create the Heroku account and then install heoku by "gem install heroku" and then publish the key on heroku by "heroku keys:add"
Second: Publish your application on Heroku with these following commands below:
1. Track your application with Git
- git init
- git add .
- git commit -m "New app"
2. Create you application on Heroku
- Heroku create
- Enter your username and password
3. Push your application on Heroku
- git push heroku master

No comments:

Post a Comment