Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watch-Restart doesn't serve updated code always #752

Closed
bvedam opened this issue Oct 3, 2014 · 0 comments
Closed

Watch-Restart doesn't serve updated code always #752

bvedam opened this issue Oct 3, 2014 · 0 comments

Comments

@bvedam
Copy link

bvedam commented Oct 3, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants