我最初设置了一个默认名称为heroku的应用程序。不过,我想改变这一点,所以我有两个应用程序,一个阶段和生产应用程序。按照Heroku指南,我想我已经开始工作了,运行git remote -v显示

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源代码,请执行以下操作;

git remote rename heroku production

这样你就可以了
git push production master

以部署应用程序。

08-27 23:28
查看更多