oott123 / node-telegram-bot

Create your own Telegram bot in minutes with the official Bot API
https://telegram.me/GaussBot
MIT License
49 stars 12 forks source link

Heroku Deployment #3

Open ghost opened 9 years ago

ghost commented 9 years ago

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.

orzFly commented 9 years ago

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.

ishan-marikar commented 9 years ago

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

ishan-marikar commented 9 years ago

If anybody got the same problem, try this.

heroku scale web=0   
heroku scale worker=1
akhilari7 commented 8 years ago

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