寫了個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