Why is Heroku rejecting this git push?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-23 12:43:10

问题


I make a new Heroku app inside of my current app directory using Heroku create and ran this:

MyMac:bodb pawel$ git push heroku master
Counting objects: 359, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (291/291), done.
Writing objects: 100% (359/359), 13.83 MiB | 2 KiB/s, done.
Total 359 (delta 40), reused 0 (delta 0)

 !     Heroku push rejected due to an unrecognized error.
 !     We've been notified, see http://support.heroku.com if the problem persists.

To git@heroku.com:myproject.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:myproject.git'

My rails app runs on Ruby 1.8.7 but even a Heroku app on --stack bamboo-ree-1.8.7 fails.

I have also run bundle install and my Gemfile is up to date.


回答1:


I don't know why the commit was corrupted, but contacted Heroku and they sorted it out.




回答2:


I had that error once when I changed the Gemfile but did not run bundler and therefore modified Gemfile.lock



来源:https://stackoverflow.com/questions/7688262/why-is-heroku-rejecting-this-git-push

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!