Skip to content

Heroku quick deploy

Last updated on: 23 February, 2020
Compiled by: Evan Tay

The purpose of this page is to quickly deploy code in an existing Git repository to Heroku.

Warning

This is a quick reference guide. It is not meant to be an informative tutorial. For more information, view the #Resources section.

Steps

Note

It is assumed that Git and Heroku CLI has been installed.

At the root of your Git repository, run the following commands:

1
2
3
4
5
# Create a new Heroku application.
heroku create

# Deploy to Heroku.
git push heroku master

Debug

Missing Heroku remote repo

Heroku remote repo not added as heroku automatically by heroku create command:

1
2
3
4
5
# Verify that 'heroku' has not been added
git remote -v

# If 'heroku' is not found in the remote list, add it
git remote add heroku <link-to-the-Heroku-repo>

Resources

Comments