herokuheroku-toolbelt

Bored to write app name in every heroku command though I got only 1 app


Heroku toolbelt is always forcing me to write an app name at the end like this:

heroku pg:reset DATABASE --app [app_name]

Is there a way to set the default app to which all my CLI heroku commands will apply?


Solution

  • If heroku is claiming that there are multiple apps in the folder you must have more than one remote in your .git/config.

    Remove the extra heroku remote or set the default using git config heroku.remote remote_name