【问题标题】:Heroku doesn't see my changes after git pushHeroku 在 git push 后看不到我的更改
【发布时间】:2013-12-09 14:42:15
【问题描述】:

我正在尝试将我的应用程序的新版本部署到 heroku,虽然在本地运行它可以工作,但在执行以下操作后我看不到任何更改:

git push heroku master

然后

heroku run rake db:migrate

好像没有效果。这很奇怪,因为在没有模型更改的情况下,我只需 git push 命令就可以部署更改。有什么想法吗?

【问题讨论】:

  • 更多信息...检查了 heroku 上的 git,它有我的最后一次提交?

标签: ruby-on-rails heroku deployment


【解决方案1】:

【讨论】:

    【解决方案2】:

    如果您正在推动然后迁移,那么您需要这样做

    heroku restart
    

    让您的应用程序重新缓存数据库架构。

    【讨论】:

      【解决方案3】:

      听起来您可能没有先将更改提交到 Github。

      git add .
      
      git commit -m "commit details here"
      
      git push origin master
      

      那么

      git push heroku master
      

      【讨论】:

      • 当我在本地版本上 git status 时,主分支上没有任何东西可以提交。我没有使用 Github。
      • 忘记提交 ^_^ 谢谢你记得我 :)
      猜你喜欢
      • 1970-01-01
      • 2017-05-23
      • 2019-11-28
      • 2018-06-24
      • 2012-06-03
      • 2011-05-23
      • 2017-01-17
      • 1970-01-01
      • 2012-09-07
      相关资源
      最近更新 更多