Instructions
1) Login to Heroku
Before you can login to Heroku, you need to install the heroku-cli interface: Heroku CLI
heroku login
2) Open your project, initiate git repository
Our initial deployment was done using the Github ‘Deploy to Heroku’ button. To update the application, we need to create a local git repository, …
cd my-project/
git init
3) Add Heroku / Github repository as remote / origin
… and add the Heroku and Github repository as remote / origin. It is important that you replace my-project
with your Heroku remote and /user/my-project
with the Github source code repository url.
heroku git:remote -a my-project
git remote add origin https://github.com/user/my-project
4) Commit changes and push to Heroku
Now we just need to pull the latest version from Github, commit all changes and push everything to Heroku. If all goes well, your app will now build and run.
git pull origin master
git add .
git commit -am "pre-heroku"
git push heroku master
That’s it! Cheers.