Skip to content

Commit

Permalink
docs: process.exit() hint (#976)
Browse files Browse the repository at this point in the history
I kept getting this annoying problem after following this tutorial which is best described in this gulp thread. ColemanGariety/gulp-nodemon#77. I'm not using gulp but the problem is the same. By adding process.exit() on nodemon quit the problem goes away smoothly.

Maybe add this process.exit() hint in the docs here?
  • Loading branch information
jwickens authored and remy committed Sep 4, 2017
1 parent f7d8a2b commit f6eff97
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/requireable.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ nodemon.on('start', function () {
console.log('App has started');
}).on('quit', function () {
console.log('App has quit');
process.exit();
}).on('restart', function (files) {
console.log('App restarted due to: ', files);
});
Expand Down

0 comments on commit f6eff97

Please sign in to comment.