【问题标题】:push to heroku after push has been made to git repo推送到 git repo 后推送到 heroku
【发布时间】:2016-11-07 09:03:31
【问题描述】:

我有两个遥控器。运行git remote -v确认

现在,我已经做到了git push 但是现在,我也想推到heroku。所以我使用了git push heroku master。但是,它显示已经是最新的。

请注意,在此 git push heroku 之前,我已经部署过一次 Heroku。 如何推送/部署我的更改?

【问题讨论】:

  • 你是如何部署到heroku的?这很重要,因为 heroku 需要推送代码才能部署您的代码。这或许可以解释您所经历的原因。
  • 我使用 windows CLI 推送,然后运行这里存在的一些命令 devcenter.heroku.com/articles/heroku-command-line 然后我参考 devcenter.heroku.com/articles/… 进行部署
  • 看来你已经推送到heroku来部署你的代码了。因此git push heroku master 命令没有找到任何更新,因为它已经到了heroku。

标签: git heroku


【解决方案1】:

检查您的 git branch -avv 输出。

master 分支有可能被链接 (through its push url) 到heroku 远程。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-06-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-10-25
    相关资源
    最近更新 更多