add no-watch option back to the cli as no-dev-watch

This commit is contained in:
spalger 2015-08-07 11:58:30 -07:00
parent 2fe09cbe3c
commit ae91063fe6
2 changed files with 2 additions and 1 deletions

View file

@ -31,7 +31,7 @@ module.exports = class ClusterManager {
bindAll(this, 'onWatcherAdd', 'onWatcherError', 'onWatcherChange');
if (opts.watch) this.setupWatching();
if (opts.devWatch) this.setupWatching();
else this.startCluster();
}

View file

@ -49,6 +49,7 @@ module.exports = function (program) {
)
.option('--plugins <path>', 'an alias for --plugin-dir', pluginDirCollector)
.option('--dev', 'Run the server with development mode defaults')
.option('--no-dev-watch', 'Prevents automatic restarts of the server in --dev mode')
.action(function (opts) {
if (opts.dev && !isWorker) {
// stop processing the action and handoff to cluster manager