Confusion about pm2 restart vs reload
Asked Answered
H

1

10

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.

Hulk answered 17/4, 2015 at 16:26 Comment(0)
O
12

Yes, pm2 restart picks up local changes. Clients may have to clear cache/refresh if you're not seeing the changes.

Osteoma answered 17/4, 2015 at 16:28 Comment(3)
I'd be curious to know what the difference between the two as stated in title. pm2 reload all vs pm2 restart all.Furcate
> Yes, pm2 restart picks up local changes. It's worth noting that 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
@Furcate answer here: #44883769Adoree

© 2022 - 2024 — McMap. All rights reserved.