heroku no app specified

Published: 05 May 2010

I've started playing around with Heroku lately and ran into an issue when I created my app on one machine and cloned from Git on another. After some digging, I found that I just needed to add heroku remote on the second machine as follows:

git remote add heroku git@heroku.com:{YOUR_APP_NAME}.git

If you've already added a remote called heroku, you may get an error like this:

fatal: remote heroku already exists.

If so, then remove the existing remote and add it again with the above command:

git remote rm heroku

From here, you should be able to do things like:

git push heroku master

or heroku config

without specifying the --app option everytime.