By default, nodemon seems to restart the node process if it crashes.
I would like nodemon to exit if it receives an unexpected error code from a started node process.
Is this behavior currently supported?
By default, nodemon seems to restart the node process if it crashes.
I would like nodemon to exit if it receives an unexpected error code from a started node process.
Is this behavior currently supported?
Try a Gracefully reloading down your script
run your up like this :
nodemon --signal SIGHUP app.js
add this to your app.js
process.once("SIGHUP", function () {
process.exit();
})