I originally had an app with the default name heroku set up. However I wanted to change this so I had two apps, an staging and production app. Following the heroku guide here I think i've got it working, running git remote -v
shows
heroku [email protected]:oldapp.git (fetch)
heroku [email protected]:oldapp.git (push)
staging [email protected]:newapp.git (fetch)
staging [email protected]:newapp.git (push)
but I now want to change the name of heroku to "production". Running heroku apps:rename production --app heroku
results in:
Renaming heroku to production... failed
! You do not have access to the app heroku.
Any ideas?
To rename a git origin perform the following;
git remote rename heroku production
this will now let you do
git push production master
to deploy your application.
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