首页 > 解决方案 > 在打开 heroku 的情况下获取多个应用程序的列表

问题描述

我有一个 rails 项目,我已经将它部署在 heroku 上。当我尝试在浏览器上打开时遇到问题heroku open,它返回一个如下所示的列表:

 ▸    Multiple apps in git remotes
 ▸    Usage: --remote heroku-stagin
 ▸    or: --app still-falls-46284
 ▸    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:
 ▸    still-falls-46284 (heroku)
 ▸    still-falls-46284 (heroku-stagin)
 ▸    still-falls-46284 (still-falls-46284)
 ▸    
 ▸    https://devcenter.heroku.com/articles/multiple-environments

我输入的一些命令:

标签: herokudeployment

解决方案


如果您尝试推送到您的heroku服务器,请执行以下操作:

git push heroku master

如果您尝试推送到您的heroku-stagin服务器:

git push heroku-stagin master

如果您的still-falls-46284分支也是 heroku 应用程序,并且您正在尝试将其推送到该应用程序,请执行以下操作:

git push still-falls-46284 master

推荐阅读