【问题标题】:heroku staging - not able to pushheroku staging - 无法推动
【发布时间】:2015-10-29 02:56:53
【问题描述】:

我无法为 heroku 推送 staging。

当我在做 git remote staging master 时,我得到了

致命:“暂存”似乎不是 git 存储库 致命:无法从远程存储库读取。

虽然我曾经使用相同的命令推送到登台。

git remote -v  

返回

来源 git@bitbucket.abc/test.git (fetch) 来源 git@bitbucket.org:abc/test.git(推送)

我尝试添加 git remote,但它创建了其他内容,当我添加 git push staging master 时,它创建了应用程序的另一个 url,而不是推送之前的暂存 url。

我无法解决这个问题。我也是 heroku 应用的所有者。

【问题讨论】:

    标签: ruby-on-rails git heroku


    【解决方案1】:

    这里只配置了一个git repo,那就是bitbucket git repo。您还需要添加 heroku 配置。参考this link

    最终,运行类似heroku git:remote -a heroku-app-name -r staging 的东西。然后你可以做git push staging master,它会推送到给定的应用程序。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-12-14
      • 1970-01-01
      • 2022-01-12
      相关资源
      最近更新 更多