Hi thank you for your response. I have found 6 files in different locations all named settings.js, please could you be more specific about which one I am to look at making alterations too?
please see screen shot, your input is much appreciated thank you.
Hi Kuema, thank you for your input. is this true even if node-red is installed as a snap on ubuntu server?
I used the locate command which normally finds every instance of a file name in every location on the machine, I double checked in the home directory and cannot find a any settings.js file in that location.
I have taken a look at the document you have linked me and attempted to start node-red using the following
sudo snap enable node-red -p 1980
unfortunately node-red does not understand the flag i am sending it, I am wondering if this information still applies when installed as a snap.
Yep, I dislike the fact that Canonical had to introduce yet another package management system. They even migrated Chromium to snap which caused me some trouble. But that's another topic.
You could try something like snap logs node-red to view the logs.
thank you for your reply dceejay, I have confined that the settings.js file has been altered and saved with the new port number, I have defiantly stopped, started, and restarted node-red.
and I can confirm by using the journalctl that the server is still listening to the default port, from the documentation you kindly provided I cannot find any reason why the changes are not taken effect?
thank you for your support it is much appreciated.
How have you changed that line ? - removed the process.env.PORT part and just left the number hopefully. I have just checked mine here and doing a sudo snap stop node-red and sudo snap start node-red def picks it up. (as long as you are fixing the correct file.