@PitaJ "version": "1.17.0" is in package.json file.
Solved Can't bind to port on Heroku
-
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, it seems that providing a port in config.json will attach the process to this port, however, Heroku expects the process to be attached to a specific port provided as an environment variable, which is random.
-
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.
-
Alright, I am going to run upgrade scripts and keep this topic up to date; thanks
-
Alright, upgraded all the way up to 1.7.1 and it did fix the issue, thank you very much for your help, the forum is now working fine on the latest version of a Heroku hobby plan.