add no-watch option back to the cli as no-dev-watch
This commit is contained in:
parent
2fe09cbe3c
commit
ae91063fe6
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue