mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
add no-watch option back to the cli as no-dev-watch
This commit is contained in:
parent
2fe09cbe3c
commit
ae91063fe6
2 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue