node-telegram-bot icon indicating copy to clipboard operation
node-telegram-bot copied to clipboard

Heroku Deployment

Open ghost opened this issue 10 years ago • 4 comments

Great client, works perfectly.

When deploying on Heroku after a few seconds it will say: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch

This is because Heroku requires .listen(process.env.PORT)

Is this answer (http://stackoverflow.com/a/15693371/2013672) useful here? I don't know how or if this issue can be fixed.

ghost avatar Jun 27 '15 08:06 ghost

In fact at this moment this bot is just a worker and doesn't start a HTTP web server. In Procfile you should replace web to worker.

orzFly avatar Jun 27 '15 11:06 orzFly

I keep getting the same problem. Mine has already been set to worker, but I still get the error.

ishan-marikar avatar Jul 24 '15 13:07 ishan-marikar

If anybody got the same problem, try this.

heroku scale web=0   
heroku scale worker=1

ishan-marikar avatar Sep 13 '15 16:09 ishan-marikar

I kept running into the same problem.Thanks @orzFly, changing the process from web to worker resolved the error.

akhilari7 avatar Feb 03 '16 10:02 akhilari7