I run node-red with pm2 using :-
pm2 start node-red
which works fine.
I can manually start a second instance with its own settings file from the command line :-
node-red -s node-red2/settings.js -u node-red2 &
and this works fine . . .
Any ideas how I can manage the second instance through pm2 aswell, so it autostarts etc. ?
pm2 start node-red --name "node-red2" --node-args="-s node-red2/settings.js -u node-red2"
which errored trying to start node-red2 and also had the interesting side effect of killing the initial node-red instance
any ideas appreciated,