【发布时间】:2015-01-21 15:59:15
【问题描述】:
由于某种原因,我无法让 Heroku 更新我的应用程序。这是我遇到这种情况的第一个应用程序。我尝试了几种不同的方法,但我尝试过的所有内容都只是在命令“一切都是最新的”中说的。当我检查 heroku 时,它只是我的应用程序的早期版本。知道为什么它不会在 Heroku 上更新吗?
这是我尝试过的:
$ bundle exec rake test
$ git add -A
$ git commit -m "..."
$ git checkout master
$ git merge blah
$ bundle exec rake test
$ git push
$ git push heroku
$ heroku run rake db:migrate
我也试过这个:
$ git status
$ git add .
$ git commit -m "..."
$ git push heroku master
$ heroku run db:migrate
这是 git 状态:
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
这里是强行装逼
$ git push heroku master --force
Everything up-to-date
这里是 git remote -v
heroku https://git.heroku.com/stupidapp1.git (fetch)
heroku https://git.heroku.com/stupidapp1.git (push)
origin https://github.com/Tyrantt47/stupidapp1.git (fetch)
origin https://github.com/Tyrantt47/stupidapp1.git (push)
【问题讨论】:
-
检查是否有帮助 - stackoverflow.com/questions/13574304/…
-
我刚试过:$ git push heroku log-in-log-out:master,它又说一切都是最新的。但什么都没有改变。我的变化是白天和黑夜。
-
你确定你推送的是正确的分支吗?你能用“git status”的输出来编辑你的问题吗?
-
试试 git remote -v。 'heroku' 的路径是否与 heroku 应用程序的存储库匹配?
标签: ruby-on-rails ruby git heroku