Push rejected, no Cedar-supported app detectedの改善

手順通りにphpファイルをアップロードするとエラーがでた。

git init 
git add .
git commit -m "initial commit"
heroku git:remote -a [プロジェクト名]
git push heroku master

サーバ更新のpushでPush rejected, no Cedar-supported app detectedがでた。

解決方法

index.phpファイルが存在していないためにおきた

そのため追加で下記実行で良い

touch index.php
git add .
git commit -m "index.php file added"
git push heroku master

herokuはどうやら、index.phpが必須になっている。というか昔同じところでハマった記憶が。

これ以外の場合にもあるらしいので参考:
http://tkoyama1988.hatenablog.com/entry/2013/12/13/072150

その他おすすめの備忘録

Tagged with:
 

コメントを残す