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

Already on GitHub? Sign in to your account

Add option to auto restart on error #175

Open
throrin19 opened this Issue May 23, 2013 · 5 comments

Comments

4 participants

Hello, if we have an error, nodemon wait file modification or manually rs command but I run command in production server and I can not afford to let the server down for even just a few minutes. Would it be possible to add an option to automatically restart the server without any external help?

Owner

remy commented May 23, 2013

Do you mean like the forever module?

On 23 May 2013 15:08, Benjamin Besse notifications@github.com wrote:

Hello, if we have an error, nodemon wait file modification or manually rs
command but I run command in production server and I can not afford to let
the server down for even just a few minutes. Would it be possible to add an
option to automatically restart the server without any external help?


Reply to this email directly or view it on GitHubhttps://github.com/remy/nodemon/issues/175
.

Yes,i mean like the 'forever' module if it's possible 👍

I'd love to see this too; a general restart on exit (error or clean). I know... forever... but...

For local dev scripts that I don't care to add error handling and fancy stuff, nodemon --auto-restart some-crappy-proxy.js would make life easier.

Maybe call it --dev-restart or something that makes it obvious it's not a forever replacement?

madhums commented Sep 18, 2014

yep, this makes sense.. +1. It helps especially in the development env

Not sure if I missed it, or it was recently added, but nodemon has --exitcrash now.

I think forever nodemon --exitcrash blah.js gets us all where we want to be? A bit cumbersome, but w/e.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment