Skip to content

recluster and nodemon on Mac OS X #49

@Noerdsteil

Description

@Noerdsteil

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions