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

recluster and nodemon on Mac OS X #49

Open
Noerdsteil opened this issue Feb 12, 2018 · 0 comments
Open

recluster and nodemon on Mac OS X #49

Noerdsteil opened this issue Feb 12, 2018 · 0 comments

Comments

@Noerdsteil
Copy link

Hi,
I am using recluster and nodemon on Mac OS X High Sierra.
Recluster seems to work fine, when sending kill signal CLI.
Now, I am combining recluster with nodemon, so nodeon is responsible to restart as soon as a file changes. Worked fine on my old Windows machine, but on Mac it seems to have difficulties with this setup.

I run the following command: nodemon -w server --exec node server/main.js

nodemon -w server --exec node server/main.js
[nodemon] 1.14.12
[nodemon] to restart at any time, enter rs
[nodemon] watching: /.../server/**/*
[nodemon] starting node server/main.js
spawned cluster, kill -s SIGUSR2 10479 to reload
CONSUMER 10482
server listening on 3000 (NODE_ENV=development)
[nodemon] restarting due to changes...
Got SIGUSR2, reloading cluster...
[10480] worker (0:1) must be replaced, respawning in 0
[10481] worker (0:2) must be replaced, respawning in 1996
[10482] worker (0:3) must be replaced, respawning in 5994
CONSUMER 10490
CONSUMER 10491
CONSUMER 10488
CONSUMER 10489
CONSUMER 10493
CONSUMER 10494

Any ideas on 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

1 participant