首页 > 解决方案 > 如何摆脱本地 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 平台上,只有一个存储库。

Heroky 上只有一个仓库

标签: ruby-on-railsheroku

解决方案


我认为这是指本地 git 存储库上的远程引用。

试试这个,看看本地设置了什么:

git remote -v

然后执行此操作以删除其中一个

git remote remove <name>

推荐阅读