Heroku推送被拒绝 [英] Heroku push gets rejected
本文介绍了Heroku推送被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在将master分支推送到heroku时遇到问题.我正在使用以下命令:
I am having problem in pushing my master branch to heroku. I am using the following command:
git push heroku master
我遇到的错误-
Counting objects: 114, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (112/112), done.
Writing objects: 100% (114/114), 335.40 KiB | 0 bytes/s, done.
Total 114 (delta 0), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Failed to detect set buildpack https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/php.tgz
remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to skyconfapp.
remote:
To https://git.heroku.com/skyconfapp.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/skyconfapp.git'
我什至访问了Heroku的链接 https://devcenter.heroku.com/articles/buildpacks #detection-failure 并尝试实现他们提到的每种方法,但似乎对我没有任何帮助.
I even visited Heroku's link https://devcenter.heroku.com/articles/buildpacks#detection-failure and tried to implement every method that they have mentioned but nothing seems to be working for me.
有人可以帮忙吗?
推荐答案
只是发生在我身上,然后我开始工作了
Just happened to me and then I got this working
尝试清除构建包,再次添加它,然后将其添加/提交/推送到heroku
Try clearing the buildpacks, adding it again and add/commit/push to heroku
heroku buildpacks:clear
heroku buildpacks:set heroku/php
git add/commit/push heroku master
这篇关于Heroku推送被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文