gpt4 book ai didi

git - Heroku 推送被拒绝

转载 作者:太空狗 更新时间:2023-10-29 13:29:54 25 4
gpt4 key购买 nike

我在将主分支推送到 heroku 时遇到问题。我正在使用以下命令:

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并尝试实现他们提到的每一种方法,但似乎没有任何方法适合我。

有人可以帮忙吗?

最佳答案

刚好发生在我身上,然后我开始工作了

尝试清除构建包,再次添加并添加/提交/推送到 heroku

heroku buildpacks:clear
heroku buildpacks:set heroku/php
git add/commit/push heroku master

关于git - Heroku 推送被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39267808/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com