[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:
spalger 2015-10-30 18:47:36 -05:00
parent 4f78811c40
commit caea55174c

View file

@ -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')