user1031947
user1031947

Reputation: 6664

Confusion about pm2 restart vs reload

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.

Upvotes: 10

Views: 9028

Answers (1)

Andy Gaskell
Andy Gaskell

Reputation: 31761

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

Upvotes: 12

Related Questions