【发布时间】:2017-01-09 02:50:29
【问题描述】:
我在将我的 master 分支推送到 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 并尝试实现他们提到的每一种方法,但似乎没有什么对我有用。
有人可以帮忙吗?
【问题讨论】:
-
你可以使用替代的 buildpack 吗?失败的链接上似乎确实有一个文件,但 Heroku 未能将其添加到应用程序中。该特定构建包可能存在问题。
-
也尝试过这样做,但仍然遇到相同的 buildpack 错误。 @黛博拉
-
当您尝试通过 Heroku UI 进行设置时会发生什么?