ultimate-tester
ultimate-tester
What is the exact use case of adding an app to the list to launch it later? Why don't you just do `pm2 start ...` later then?
I'm going through the issues to find mentions about not auto-starting a new process, which I now created a PR for: #5780
Not sure if this is related to PM2. I see the PM2 report states NodeJS 20 and the ?? operator is available since NodeJS 14 so not sure what goes...
I'm going through the issues to find mentions about not auto-starting a new process, which I now created a PR for: #5780
I'm going through the issues to find mentions about not auto-starting a new process, which I now created a PR for: #5780
You posted a lot of source code snippets but did not actually describe the issue you are having.
Is that message appearing when you do `pm2 logs`? Or else, where do you see it? Could it be that this happens because your script is completing/terminating? It doesn't seem...
Code 0 is a normal successful program end, which I'd expect from the code you provided. The cluster mode is meant to automatically share a listening port between all nodes...
So pm2 would be a manager for NodeJS, not for other application types. It can probably be abused to make your use case work, but that doesn't mean it's supported....
Are you running the latest pm2 version? I just tried to reproduce this with node v20.11.1 and the exact code from your first post and for me it works fine!...