Issuing "pm2 restart all" will restart all of the processes pm2 is managing.
I am wondering: If there have been changes to any of the source files, does this actually reload the changes? Or does it just restart the existing pm2 process in memory.
Issuing "pm2 restart all" will restart all of the processes pm2 is managing.
I am wondering: If there have been changes to any of the source files, does this actually reload the changes? Or does it just restart the existing pm2 process in memory.
Yes, pm2 restart
picks up local changes. Clients may have to clear cache/refresh if you're not seeing the changes.
pm2 restart
will not pick up any changes to the pm2.yml or pm2.json file itself though. This has killed me several times. If your pm2.yml or pm2.json has changed you have to do a pm2 stop && pm2 delete && pm2 start
. –
Anaemia © 2022 - 2024 — McMap. All rights reserved.
pm2 reload all
vspm2 restart all
. – Furcate