Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 840
user1031947 Avatar asked Apr 17 '15 16:04

user1031947


1 Answers

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

like image 127
Andy Gaskell Avatar answered Sep 21 '22 08:09

Andy Gaskell