express-generatorを使ってNode.jsのアプリを作り、Herokuにデプロイしようとしています。PCはwindows10を使っています。
Herokuのアドオンでmysqlを接続してあります。
ビルドでは成功しますが、アプリを開こうとすると、アプリケーションエラーになります。
エラーメッセージは
2022-06-19T11:34:14.307987+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch 2022-06-19T11:34:14.346570+00:00 heroku[web.1]: Stopping process with SIGKILL 2022-06-19T11:34:14.369235+00:00 app[web.1]: Error waiting for process to terminate: No child processes 2022-06-19T11:34:14.473851+00:00 heroku[web.1]: Process exited with status 22 2022-06-19T11:34:14.608452+00:00 heroku[web.1]: State changed from starting to crashed 2022-06-19T11:34:16.075733+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=games-on-japanese.herokuapp.com request_id=8da40229-c0b0-4fc6-975d-4c7485a72fbd fwd="106.72.133.128" dyno= connect= service= status=503 bytes= protocol=https 2022-06-19T11:34:16.858513+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=games-on-japanese.herokuapp.com request_id=809ef60f-12b4-4aad-bd90-20b3772d0c0d fwd="106.72.133.128" dyno= connect= service= status=503 bytes= protocol=https
favicon.icoはルートディレクトリに置いてあります。
package.jsonは
{ "name": "xxxxxx", "version": "0.0.0", "private": true, "scripts": { "start": "node index" }, "dependencies": { "bcrypt": "^5.0.0", "body-parser": "^1.19.0", "bookshelf": "^1.2.0", "cookie-parser": "~1.4.4", "debug": "~2.6.9", "ejs": "~2.6.1", "express": "~4.16.1", "express-session": "^1.17.1", "express-validator": "^6.9.2", "http-errors": "~1.6.3", "knex": "^0.21.17", "morgan": "~1.9.1", "mysql": "^2.18.1" } }
Procfileをルートディレクトリに作りました。内容は以下の通りです。
web: node index
エラーの内容をもっと具体的に知りたいのですが、方法がわかりません。
どなたか、Herokuのこのエラーの内容をさらに調べる方法を教えていただけないでしょうか。