You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use pm2 0.9.6 on ubuntu, for managing my node application and am seeing an issue with Watch-Restart. I am using app json declaration
cluster instances: 1
watch: ['.']
ignoreWatch: [some other folders]
On pm2 start, lsof command shows 1 parent process and 3 child processes. If I remove watch & ignoreWatch, it shows only 1 child process indicating the other 2 children are for watch and ignoreWatch.
On file change, "watch" works but the change is not reflected consistently indicating the "watch/ignoreWatch" processes also service requests but with old code (as they are not restarted, PIDs remain the same).The change is reflected only when the "actual" service (with a new PID) meant for serving serves the requests, as it is the only one that gets restarted.
"pm2 reload all" doesn't fix it either, as the helper processes remain. I have to do pm2 kill and start everything over to get it working again. Appreciate your help in fixing this.
The text was updated successfully, but these errors were encountered:
I use pm2 0.9.6 on ubuntu, for managing my node application and am seeing an issue with Watch-Restart. I am using app json declaration
cluster instances: 1
watch: ['.']
ignoreWatch: [some other folders]
On pm2 start, lsof command shows 1 parent process and 3 child processes. If I remove watch & ignoreWatch, it shows only 1 child process indicating the other 2 children are for watch and ignoreWatch.
On file change, "watch" works but the change is not reflected consistently indicating the "watch/ignoreWatch" processes also service requests but with old code (as they are not restarted, PIDs remain the same).The change is reflected only when the "actual" service (with a new PID) meant for serving serves the requests, as it is the only one that gets restarted.
"pm2 reload all" doesn't fix it either, as the helper processes remain. I have to do pm2 kill and start everything over to get it working again. Appreciate your help in fixing this.
The text was updated successfully, but these errors were encountered: