前提・実現したいこと
javascriptとhtmlで作成したアプリをherokuでデプロイした際にapplicationerrorがでてしまいます。
発生している問題・エラーメッセージ
State changed from crashed to starting heroku[web.1]: Starting process with command `npm start` heroku[web.1]: State changed from starting to crashed heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=mapionmapion.herokuapp.com request_id=1ca7bdfb-e619-4166-8abc-b68df85e5955 fwd="160.86.247.138" dyno= connect= service= status=503 bytes= protocol=https
該当のソースコード
package.json { "name": "weather_navi", "version": "1.0.0", "description": "", "main": "index.html", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { "type": "git", "url": "git+https://github.com/fujisyo/weather_navi.git" }, "author": "", "license": "ISC", "bugs": { "url": "https://github.com/fujisyo/weather_navi/issues" }, "homepage": "https://github.com/fujisyo/weather_navi#readme" } Procfile web: node ./bin/www index.php <?php include_once("index.html"); ?>
試したこと
package.jsonのなかみを{}のみにしてみたりとしましたがエラーの内容は変わりませんでした。
補足情報(FW/ツールのバージョンなど)
Qiitaでアプリとして認識されていないからという記事を見たので、index.phpを作成しphpのアプリとしてデプロイしました。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/01/23 08:17
2020/01/30 05:05