Heroku is great for rapid prototyping and testing ideas. All you have to do is git push heroku master
right? Wonderful.
However, sometimes deploying can be somewhat daunting, with so many errors messages to deal with. Below is my own Heroku deployment checklist:
Steps
Create an App on Heroku dashboard eg.
boboobo
and select appropriate region.Copy Git URL in this case
git@heroku.com:boboobo.git
and rungit remote add heroku git@heroku.com:boboobo.git
in the App directory.After making changes in local directory, stage files, commit and then deploy code via
git push heroku master
orgit push heroku mod1:master
(when deploying from branch mod1)
After generating migrations, do the following to avoid any nasty errors
heroku run rake db:migrate
heroku run rake db:reset
andheroku run rake db:setup
heroku restart
Also do
heroku logs -t
andheroku run console
to check server logs and db in console respectively.
After successfully deploying this app you'll end up with a nice url like http://boboobo.herokuapp.com