I found a dozen solutions for Express powered apps with setting port to listen on.
But I have an app that doesn't use Express and doesn't in fact listens anything.
And after 60 seconds of it successfully running I get a Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
message.
How I can get around it? Thanks.
Node.js – Heroku Node.js Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
herokunode.js
Best Answer
After lots of googling I decided to
npm install express
and addThis fixed the error, even though I don't like adding express just to avoid one error. If someone finds a better solution, please let me know.