我已经陷入了与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'
Run Code Online (Sandbox Code Playgroud)
我试过了git pull heroku master,这让我"已经是最新的了".我也尝试添加-f标志,但这也不起作用.有时拒绝Heroku中的应用程序.
有任何想法吗?
编辑:
我也尝试过这里的建议:未能将一些参考文献推送到git@heroku.com:myapp.git
包括从heroku/master创建一个新分支,然后立即将它推送到heroku.它失败.