Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku: ! You do not have access to the app heroku

Tags:

git

heroku

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?

like image 581
KingFu Avatar asked Oct 22 '22 05:10

KingFu


1 Answers

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.

like image 158
John Beynon Avatar answered Oct 24 '22 01:10

John Beynon