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?
Renaming an application This command succeeded because we typed inside the application folder. If you want to change the application name from outside the Git checkout or application folder, you can type the following command: $ heroku apps:rename newname --app oldname http://newname.heroku.com/ ...
Going to post this just in case it helps someone else out. I had the same problem even though there was only one app installed. I had to switch my heroku remote url from https to git.
https://git.heroku.com/[heroku-app-1234].git
to
[email protected]:[heroku-app-1234].git
Then everything worked normally for myself.
git remote remove heroku
git remote add heroku [email protected]:[heroku-app-1234].git
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With