【问题标题】:Git push heroku master doesn't push any changes in my codebaseGit push heroku master 不会在我的代码库中推送任何更改
【发布时间】:2018-06-24 16:37:54
【问题描述】:

当我将 gem 添加到我的应用程序的 Gemfile、提交更改并尝试 git push heroku master 时,它只是通过下面的消息告诉我所有更改都是最新的。

$ git push heroku master
Everything up-to-date

我该如何诊断这个问题?谢谢。

【问题讨论】:

  • 你在修改 Gemfile 后在本地运行 bundle install 后提交了 Gemfile.lock 吗?
  • 是的!在本地运行 bundle install 后,我确实提交了我的 Gemfile.lock 和 Gemfile。同样,重新启动我的计算机似乎有所帮助(我刚刚安装了 heroku cli 工具集)。奇怪!
  • 等等,heroku 是否只查看 master 分支以确定是否有更改?我创建了一个单独的heroku 分支来安装和推送heroku。
  • git add .
  • 是的,我确实做到了。我通常使用git add --all

标签: ruby-on-rails ruby git heroku


【解决方案1】:

尝试以下方法:

git push heroku heroku:master

【讨论】:

    猜你喜欢
    • 2014-03-02
    • 1970-01-01
    • 1970-01-01
    • 2018-06-29
    • 2011-05-23
    • 2014-04-30
    • 2019-11-28
    • 2013-09-05
    • 1970-01-01
    相关资源
    最近更新 更多