作者热门文章
- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我最初设置了一个默认名称为 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/
我是一名优秀的程序员,十分优秀!