为什么Heroku拒绝这个git push? [英] Why is Heroku rejecting this git push?
本文介绍了为什么Heroku拒绝这个git push?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用 Heroku create
在我的当前应用程序目录中创建一个新的Heroku应用程序,并运行它:
MyMac:bodb pawel $ git push heroku master
计数对象:359,完成。
使用多达2个线程的增量压缩。
压缩对象:100%(291/291),完成。
写作对象:100%(359/359),13.83 MiB | 2 KiB / s,完成。
总计359(增量40),重用0(增量0)
!由于无法识别的错误,Heroku推送被拒绝。
!如果问题仍然存在,我们已收到通知,请参阅http://support.heroku.com。
到git@heroku.com:myproject.git
! [remote rejected] master - > master(pre-receive hook refused)
错误:未能将一些文件推送到'git@heroku.com:myproject.git'
我的Rails应用程序在Ruby 1.8.7
上运行,但即使是上的Heroku应用程序 - stack bamboo-ree -1.8.7
失败。
我也运行 bundle install
和我的Gemfile是最新的。
解决方案
我不知道为什么提交已损坏,但联系了Heroku并将其整理出来。
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.
解决方案
I don't know why the commit was corrupted, but contacted Heroku and they sorted it out.
这篇关于为什么Heroku拒绝这个git push?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文