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

≡放荡痞女 提交于 2021-01-27 05:21:44

问题


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  git@heroku.com:oldapp.git (fetch)
heroku  git@heroku.com:oldapp.git (push)
staging git@heroku.com:newapp.git (fetch)
staging git@heroku.com: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?


回答1:


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.




回答2:


Make sure you have "production" app in your heroku account. (You have to have the new app name in your account.)

So basically your command should be something like :

heroku apps:rename newapp --app oldapp

You cannot rename heroku since its not your app.



来源:https://stackoverflow.com/questions/17742946/heroku-you-do-not-have-access-to-the-app-heroku

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!