Deploy Website with Heroku

Just some notes on my experience using Heroku

Deploy from local Git Repo

reference: https://devcenter.heroku.com/articles/git

Login to account

heroku login

Create a project

heroku create nz-food-price(whatever name)

Double check Heroku project has been added to local repo as a remote

git remote -v

You should see things like this

heroku	https://git.heroku.com/nz-food-price.git (fetch)
heroku	https://git.heroku.com/nz-food-price.git (push)
origin	https://github.com/cici-chen/nz-food-price (fetch)
origin	https://github.com/cici-chen/nz-food-price (push)

Now deploy

git push heroku master

This deploys your local master to heroku master If you want to deploy from a branch that is not your master

git push heroku yourbranch:master

Now check out your app at name.herokuapp.com