I am using pm2 to manage my node.js processes. Very happy with it so far.
What is the purpose of $ pm2 save
? What is the purpose of saving a process list? I don't quite understand from the documentation.
https://github.com/Unitech/pm2
pm2 save
takes a snapshot of your currently running Node applications.
You can then restore these applications using pm2 resurrect
.
This is useful because it means you don't have to manually restart each application when you restart pm2 (such as a machine reboot). Instead, you can just have a script that calls pm2 resurrect
and it'll start up all the Node apps.