How I do this is have a "runner.js" which uses cluster. When it receives
SIGUSR2 it restarts each child process one-by-one, ensuring that the
service is always running even during a restart.

I've posted it here before:
https://gist.github.com/baudehlo/c4d00a78720b85171237

On Fri, Mar 6, 2015 at 6:46 AM, Leandro Müller <[email protected]>
wrote:

> Hi everyone.
>
> How can I change source without restart server?
> I read about nodemon  but it restart server when there is any change.
> I need to change my application on runtime 24/7.
>
> Thanks.
>
> --
> Job board: http://jobs.nodejs.org/
> New group rules:
> https://gist.github.com/othiym23/9886289#file-moderation-policy-md
> Old group rules:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/nodejs/5e206651-1577-44be-8da2-86fe4a39590a%40googlegroups.com
> <https://groups.google.com/d/msgid/nodejs/5e206651-1577-44be-8da2-86fe4a39590a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/CAPJ5V2aOOnDVN%2BOdQK9PzS2zGEj4VMtD%2B3YSFUBZnp4q-JF-0w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to