Unitech / pm2

Node.js Production Process Manager with a built-in Load Balancer.
https://pm2.keymetrics.io/docs/usage/quick-start/
Other
41.34k stars 2.61k forks source link

Hot Code Swap #5878

Open leoffx opened 1 month ago

leoffx commented 1 month ago

Would hot code swapping ever work with pm2?

I'm aware that pm2 has the --watch command, but this restarts the server and kills existing connections. I need to deploy my changes without affecting users.

wastikansari commented 3 weeks ago

PM2 doesn't support true hot code swapping, which lets you update code without any disruption. Instead, PM2's --watch command restarts your app when changes are detected, which can interrupt users.