Using heroku to deploy your projects: Difference between revisions
Jump to navigation
Jump to search
(Created page with "= Heroku for deploying projects = == What is Heroku == Heroku is a cloud application platform (or a PaaS) that allows developers to easily deploy their apps without worrying abou...") |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
= Heroku for deploying projects = | = Heroku for deploying projects = | ||
== What is Heroku == | == What is Heroku? == | ||
Heroku is a cloud application platform (or a PaaS) that allows developers to easily deploy their apps without worrying about servers, hosting, etc. | Heroku is a cloud application platform (or a PaaS) that allows developers to easily deploy their apps without worrying about servers, hosting, etc. | ||
<br/> | <br/> | ||
Line 8: | Line 8: | ||
# Basic signup is free! | # Basic signup is free! | ||
== What do I need == | == What do I need? == | ||
* Go to [http://www.heroku.com Heroku] and sign up for an account. It is free to sign up. | |||
* Develop and run your app locally | |||
* Install git and use it to track your application. More about how to do that [[Using_git_and_github_for_projects]] | |||
* Create a public SSH key | |||
$ ssh-keygen -t rsa -C "your_email@youremail.com" | $ ssh-keygen -t rsa -C "your_email@youremail.com" | ||
* Install the heroku gem | |||
gem install heroku | gem install heroku | ||
heroku keys:add | heroku keys:add | ||
You will have to enter your heroku credentials | You will have to enter your heroku credentials | ||
* Create your heroku application. | |||
In your project directory, | In your project directory, | ||
heroku create | heroku create | ||
* Push to heroku | |||
git push heroku master | git push heroku master | ||
* Migrate your database | |||
heroku | heroku rake db:migrate | ||
Viola you are done! Your public URL is specified when you did heroku create. Your application is all set to go! | Viola you are done! Your public URL is specified when you did heroku create. Your application is all set to go! | ||
<br/> | <br/> | ||
== Heroku help == | == Heroku help == | ||
This guide has been taken largely from the heroku dev center. Look at [http://devcenter.heroku.com/articles/quickstart Heroku HowTo] for more details. Also, effectively use google to solve your doubts, there is plenty of help available. | This guide has been taken largely from the heroku dev center. Look at [http://devcenter.heroku.com/articles/quickstart Heroku HowTo] for more details. Also, effectively use google to solve your doubts, there is plenty of help available. |
Latest revision as of 01:15, 6 October 2011
Heroku for deploying projects
What is Heroku?
Heroku is a cloud application platform (or a PaaS) that allows developers to easily deploy their apps without worrying about servers, hosting, etc.
We are going to use heroku to deploy the backchannel app of project 1. There are several advantages:
- You have a deployed app ready to test in under 5 minutes
- You have a public URL that you can show off to potential interviewers :)
- Basic signup is free!
What do I need?
- Go to Heroku and sign up for an account. It is free to sign up.
- Develop and run your app locally
- Install git and use it to track your application. More about how to do that Using_git_and_github_for_projects
- Create a public SSH key
$ ssh-keygen -t rsa -C "your_email@youremail.com"
- Install the heroku gem
gem install heroku heroku keys:add
You will have to enter your heroku credentials
- Create your heroku application.
In your project directory,
heroku create
- Push to heroku
git push heroku master
- Migrate your database
heroku rake db:migrate
Viola you are done! Your public URL is specified when you did heroku create. Your application is all set to go!
Heroku help
This guide has been taken largely from the heroku dev center. Look at Heroku HowTo for more details. Also, effectively use google to solve your doubts, there is plenty of help available.