- Server operating system version
- Ubuntu 20.04.6 LTS
- Plesk version and microupdate number
- Plesk Obsidian 18.0.52
Hello,
I was finally able to make openhab cloud work.
The application is listening on port 3000 and I would like to change this since Dr.Web is using this port.
The code of app.js contains this line.
I tried to set env variable PORT to 3001, without any change.
Even if I change it to
the app will always start on port 3000
Is there a way to tell a nodejs app witch port to listen to, on start up?
Best regards
I was finally able to make openhab cloud work.
The application is listening on port 3000 and I would like to change this since Dr.Web is using this port.
The code of app.js contains this line.
JavaScript:
app.set('port', process.env.PORT || 3000);
Even if I change it to
JavaScript:
app.set('port', 3001);
Is there a way to tell a nodejs app witch port to listen to, on start up?
Best regards