Web proce..." /> Web proce..." /> Web proce..."/>

How can I deploy a django+swampdragon realtime chatapp on heroku?

197 views Asked by At

A simple django chatapp with swampdragon runs perfectly locally. But when I try to deploy it on heroku it shows "Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch" in the log. In the proc file I added "web: python server.py". which runs in the port 9999 locally. But how do I handle the port 9999 with heroku?

1

There are 1 answers

2
Ryu S. On

See this question:

Setting the port for node.js server on Heroku

You can't specify which port you want to use on Heroku.

Heroku sets it 'automatically' so you should read what the PORT variable is in the environment then use that.

heroku config:get PORT

references: https://devcenter.heroku.com/articles/config-vars