Heroku “State changed from starting to down Stopping all processes with SIGTERM”

后端 未结 1 484
我寻月下人不归
我寻月下人不归 2021-02-10 09:07

After booting up my Node.js Heroku app with this Procfile:

web: node www/main.js

I used to get:

Error R10 (Boot timeout

1条回答
  •  北海茫月
    2021-02-10 09:29

    socket = io.listen(process.env.PORT);

    Do this in your main.js file, and revert back to web: node www/main.js

    0 讨论(0)
提交回复
热议问题