Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Does the "forever" daemon know if I updated my Node.js script?

Is it safe for me to change my Node.js script if the forever daemon is actively running in the background?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Not a definite answer (I have no clue) but merely a hint, have you checked the watch-settings?

From the README on github:

//
// Options for restarting on watched files.
//
'watch': false              // Value indicating if we should watch files.
'watchIgnoreDotFiles': null // Dot files we should read to ignore ('.foreverignore', etc).
'watchIgnorePatterns': null // Ignore patterns to use when watching files.
'watchDirectory': null      // Top-level directory to watch from.

Edit: So, guessing from these options, it probably does "cache" the script, in the sense that it reads its source once - unless you tell it to watch the source.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.