Skip to content

Commit

Permalink
docs: delay option in nodemon.js (#914)
Browse files Browse the repository at this point in the history
Closes #324 

[skip ci]
  • Loading branch information
remy authored Oct 5, 2016
2 parents ab41ad7 + f7370df commit bf212f5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,14 @@ Or using the time specifier (ms):

The delay figure is number of seconds (or milliseconds, if specified) to delay before restarting. So nodemon will only restart your app the given number of seconds after the *last* file change.

If you are setting this value in `nodemon.json`, the value will always be interpretted in milliseconds. E.g., the following are equivalent:

nodemon --delay 2.5

{
"delay": "2500"
}

## Controlling shutdown of your script

nodemon sends a kill signal to your application when it sees a file update. If you need to clean up on shutdown inside your script you can capture the kill signal and handle it yourself.
Expand Down

0 comments on commit bf212f5

Please sign in to comment.