こんにちは
heroku + node.jsでアプリを作っていて、いざherokuにpushしたらerrorがでました。
Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch Stopping process with SIGKILL Process exited with status 137 State changed from starting to crashed
node serverを立てていなくてerrorがでてたので
expressでnode serverを作成。
もう一度push
またerror。。
port番号をローカル用に5000を設定していたのですが、herokuで決められたport番号を設定しないとerrorがでるようです。
なので下記に修正
const PORT = process.env.PORT || 5000;
これで正常に動くようになりました!