Push Existing Git Repository to Heroku


It is as my note. How to add existing git repository to Heroku app. Here,  I already have an awesome project, I have created a Heroku app, and I have installed git and Heroku command-line interface in my computer.

# npm install -g heroku-cli

First, do this command to list all remote repository available in our local. And make sure there is no Heroku repository listed yet.

$ git remote -v

Then do this command to add Heroku repository.

$ heroku git:remote -a <our heroku app name>

Then do this command again. And make sure our Heroku repository listed.

$ git remote -v

Finally, we can push our git repository to Heroku using this command.

$ git push heroku master

This is the screenshot of mine.


You can  see my project at heroku here. The source code is also available at Github.

I will write more about this project in another post.



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Powered by WordPress.com.

Up ↑

%d bloggers like this: