gpt4 book ai didi

git - 赫罗库:!您无权访问应用程序 heroku

转载 作者:太空狗 更新时间:2023-10-29 13:41:15 27 4
gpt4 key购买 nike

我最初设置了一个默认名称为 heroku 的应用程序。但是我想改变这一点,所以我有两个应用程序,一个暂存和生产应用程序。按照 heroku 指南 here我想我已经开始工作了,运行 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)

但我现在想将 heroku 的名称更改为“production”。运行 heroku apps:rename production --app heroku 结果:

Renaming heroku to production... failed
! You do not have access to the app heroku.

有什么想法吗?

最佳答案

要重命名 git origin,请执行以下操作;

git remote rename heroku production

现在你可以这样做了

git push production master

部署您的应用程序。

关于git - 赫罗库:!您无权访问应用程序 heroku,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17742946/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com