目標
我很新的Heroku的,我試圖部署非常簡單的網站到Heroku。未能檢測到設定buildpack https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/php.tgz
網站結構
正如你所看到的,我不是想在這裏部署一個複雜的Node.js或Laravel網站。
步驟
我登錄到課程的Heroku,然後
cd idesign4u/
git init
heroku git:remote -a idesign4u
git add .
git commit -am "Project Initialization"
heroku buildpacks:set heroku/php
我得到這個
Buildpack set. Next release on idesign4u will use heroku/php.
Run git push heroku master to create a new release using this buildpack.
我想我已經準備就緒。然後我跑
git push heroku master
結果
我一直得到
Counting objects: 67, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (64/64), done.
Writing objects: 100% (67/67), 60.75 MiB | 6.16 MiB/s, done.
Total 67 (delta 2), 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 idesign4u.
remote:
To https://git.heroku.com/idesign4u.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/idesign4u.git'
未能檢測到設定buildpack https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/php.tgz
問題
我該如何繞過?
我需要在Heroku網站中做什麼其他設置?
如何進一步調試?
我打開此時的任何建議。
任何提示/建議/對此的幫助將非常感謝!
注
我發現了一些SO發佈這樣一個位置:
Push rejected, failed to detect set buildpack heroku/php
我看了看它,但它不是我的情況確實與此有關。
你是一個生命的救星人!!!!!! – ihue