git remote 中的多个应用程序以及如何指定一个应用程序
Posted
技术标签:
【中文标题】git remote 中的多个应用程序以及如何指定一个应用程序【英文标题】:Multiple apps in git remote and how to specify to one app 【发布时间】:2021-03-31 18:16:22 【问题描述】:我在我的 git 存储库上与另一位开发人员合作,他在分叉后将他的工作推给了我。当我想使用 git push Heroku master
将我们的工作更改部署到 Heroku 时,我收到以下错误。以前它在我部署时一直在工作。我需要指定应用程序,但不知道如何。我正在使用 Django 和 VScode。
这是以下错误:
Error: Multiple apps in git remotes
› Usage: --remote heroku-staging
› or: --app radiant-escarpment-03215
› 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:
› beneluxbilal (heroku)
› radiant-escarpment-03215 (heroku-staging)
我已经尝试过使用 --app 但它似乎不适合我。
【问题讨论】:
【参考方案1】: heroku ps:scale web=1 --remote heroku-staging
【讨论】:
很难说你是如何回答这个问题的。你能详细说明一下吗?谢谢。以上是关于git remote 中的多个应用程序以及如何指定一个应用程序的主要内容,如果未能解决你的问题,请参考以下文章