pm2
pm2 copied to clipboard
Create process but not start
Is it possible create process and not start it. Save list and then start when you need?
You can probably use a config file for it.
https://pm2.keymetrics.io/docs/usage/application-declaration/
That doesn't work. I opened this issue quite some time ago and never got a response: https://github.com/Unitech/pm2/issues/5711
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?
In our case, we use a CI/CD workflow that ships to production on merge. So we use Ecosystem files with cron schedules defined in the ecosystem file. Therefore, when we merge to production, deployment is automatic, but we do not want all previously defined jobs in our ecosystem to run just because we merged code to production and/or added/deleted a job with it's own cron schedule in the ecosystem file.
I'm going through the issues to find mentions about not auto-starting a new process, which I now created a PR for: #5780
Let's go!
Wow! Thanks a lot!