ruby-on-rails - 如何摆脱本地 heroku 遥控器或应用程序?
问题描述
Heroku 告诉我它可以识别多个应用程序。但是当我想删除一个时,它说该应用程序不存在。我怎样才能摆脱它?
➜ sample_app git:(user-microposts) heroku pg:reset DATABASE
› Error: Multiple apps in git remotes
› Usage: --remote rails-tutorial-josufst
› or: --app pure-crag-52432
› Your local git repository has more than 1 app referenced in git remotes.
› Because of this, we can't determine which app you want to run this command against.
› Specify the app you want with --app or --remote.
› Heroku remotes in repo:
› rails-tutorial-josufst (heroku)
› pure-crag-52432 (rails-tutorial-josufst)
›
› https://devcenter.heroku.com/articles/multiple-environments
➜ sample_app git:(user-microposts) heroku apps:destroy pure-crag-52432
▸ Couldn't find that app.
在 Heroku 平台上,只有一个存储库。
解决方案
我认为这是指本地 git 存储库上的远程引用。
试试这个,看看本地设置了什么:
git remote -v
然后执行此操作以删除其中一个
git remote remove <name>
推荐阅读
- sas - SAS - 从单独的服务器访问 SAS 数据集
- substrate - 如何将数据存储在一个块中?
- python - Python3:为什么 3 个进程完成的速度不比 1 个快?
- php - PHP DomDocument - 调用 loadHTML() 时添加了新行符号
- c# - 协变表达式
> - c# - 操作现有的 CSV 文件,同时保持列的顺序。(CsvReader/CsvWriter)
- javascript - 如何将“2019 年 11 月 26 日星期二 16:00:00 GMT-0800”转换为 .net json 日期格式“\/Date(1574812800000)\/”格式?
- c - 如何递归地打印结构数组?
- sql - 当字符串以sql中的数字结尾时,删除单词之间的空格
- postgresql - 如何使 Buffalo 事务中间件提交?