OTHERS
[Heroku] Push rejected, no Cedar-supported app detected

Push rejected

寫了個Static Website想Push上Heroku,卻出現了「Push rejected, no Cedar-supported app detected」Error。

原因

Heroku判斷不到App用的環境,例如PHP、Java、Ruby之類的

解決方法

1. 將index.html改成index.php
2. Console輸入
heroku buildpacks:set https://github.com/heroku/heroku-buildpack-php

這樣再Push就應該可以了

參考
https://devcenter.heroku.com/articles/buildpacks

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">