mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Parameterize Kibana port
This commit is contained in:
parent
e3f0479d76
commit
6f401c12e3
2 changed files with 4 additions and 1 deletions
|
@ -3,6 +3,9 @@ module.exports = function (grunt) {
|
|||
var done = this.async();
|
||||
var config = require('../src/server/config');
|
||||
config.quiet = !grunt.option('debug') && !grunt.option('verbose');
|
||||
if (grunt.option('port')) {
|
||||
config.port = config.kibana.port = grunt.option('port');
|
||||
}
|
||||
var server = require('../src/server');
|
||||
|
||||
server.start(function (err) {
|
||||
|
|
|
@ -55,7 +55,7 @@ module.exports = function (grunt) {
|
|||
|
||||
grunt.registerTask('maybe_start_kibana', maybeStartServer({
|
||||
name: 'kibana-server',
|
||||
port: config.kibana.port,
|
||||
port: grunt.option('port') || config.kibana.port,
|
||||
tasks: ['kibana_server']
|
||||
}));
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue