goo pre-receive hook因heroku而拒绝

时间:2013-04-07 20:00:28

标签: wordpress git heroku

我和heroku陷入了混乱。我正在部署一个Wordpress PHP应用程序,基本上在主题目录中有一大堆git repos,加上我从github项目中克隆的父主题。我成功部署了Wordpress,但是git忽略了已经在他们单独的repos中跟踪的主题,所以我回去并将主题复制到不同的目录,以便不会跟踪它们,并删除.git文件夹。

我的问题是,执行此操作后,Heroku不会让我执行git push heroku master,但会回复此错误消息:

Writing objects: 100% (972/972), 2.73 MiB | 76 KiB/s, done.
Total 972 (delta 46), 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:....git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:....git'

我试过git pull heroku master,这让我“已经是最新的”了。我也尝试添加-f标志,但这也不起作用。有时拒绝Heroku中的应用程序。

有什么想法吗?

修改

我也尝试了这里的建议:failed to push some refs to git@heroku.com:myapp.git

包括从heroku / master创建一个新分支,然后立即将其推送到heroku。它失败了。

1 个答案:

答案 0 :(得分:0)

我在Heroku的git基础设施上工作。为了将来参考,这些通常是我们监控的服务级别问题,但可能是您的情况所特有的。最好检查https://status.heroku.com,或在https://support.heroku.com处提交票证。