Can't bind to port on Heroku
Solved
Technical Support
-
Hi,
I can't get NodeBB v1.5.3 to work on Heroku, as it does not bind to the correct port (Binding to 4567 while Heroku exposes a
PORT
environment variable, changing at each deployment).My
config.json
is as follow:{ "url": "http://xxxxx.herokuapp.com", "secret": "someRandomUUID", "database": "redis", "redis": {...} }
Thank you very much
-
You can try specifying port in config.json as well:
"port": 4567
-
Well the port environment variable should work. What version of nodebb, node, npm, etc
-
I see you're on an old version of nodebb. You should upgrade because there have been some PORT related fixes and also security patches.
Copyright © 2024 NodeBB | Contributors