为什么我无法将我的应用程序推送到Heroku?

时间:2015-01-20 07:48:56

标签: ruby-on-rails ruby git heroku

由于某种原因,我无法让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)

2 个答案:

答案 0 :(得分:0)

柯蒂斯,我觉得这个答案可以被判断为优秀开发者的对立面,但是如果你想要将代码部署到版本控制和本地,那么为什么不把它推到一个新的Heroku应用程序。< / p>

如果存储库的名称是应用程序规模的任何指示,我会说尝试并查看结果。

Heroku提供了有关将数据库从一个应用程序迁移到另一个应用程序的良好文档,并且如果其中任何一个是关注点,其附加服务很容易设置。

思考的食物......

答案 1 :(得分:0)

我认为语法是

git push -f heroku master
相关问题