Skip to content

Commit

Permalink
[cli/dev] log a warning when --no-base-path is used with --dev (#84354)
Browse files Browse the repository at this point in the history
Co-authored-by: spalger <spalger@users.noreply.github.com>
  • Loading branch information
Spencer and spalger committed Nov 25, 2020
1 parent ad815fd commit d0acc5a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/cli/cluster/cluster_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,19 @@ export class ClusterManager {
this.inReplMode = !!opts.repl;
this.basePathProxy = basePathProxy;

if (!this.basePathProxy) {
this.log.warn(
'===================================================================================================='
);
this.log.warn(
'no-base-path',
'Running Kibana in dev mode with --no-base-path disables several useful features and is not recommended'
);
this.log.warn(
'===================================================================================================='
);
}

// run @kbn/optimizer and write it's state to kbnOptimizerReady$
if (opts.disableOptimizer) {
this.kbnOptimizerReady$.next(true);
Expand Down

0 comments on commit d0acc5a

Please sign in to comment.