[cli] fix support for CONFIG_PATH env var
Kibana used to support passing the path to the config file via the CONFIG_PATH environment variable but support for that went away with the latest itteration of the server. This brings it back.
This commit is contained in:
parent
4f78811c40
commit
caea55174c
1 changed files with 2 additions and 2 deletions
|
@ -34,8 +34,8 @@ module.exports = function (program) {
|
|||
.option('-e, --elasticsearch <uri>', 'Elasticsearch instance')
|
||||
.option(
|
||||
'-c, --config <path>',
|
||||
'Path to the config file',
|
||||
fromRoot('config/kibana.yml'))
|
||||
'Path to the config file, can be changed with the CONFIG_PATH environment variable as well',
|
||||
process.env.CONFIG_PATH || fromRoot('config/kibana.yml'))
|
||||
.option('-p, --port <port>', 'The port to bind to', parseInt)
|
||||
.option('-q, --quiet', 'Prevent all logging except errors')
|
||||
.option('-Q, --silent', 'Prevent all logging')
|
||||
|
|
Loading…
Reference in a new issue