Merge pull request #4104 from ycombinator/parameterize-port
Parameterize Kibana port for development setup
This commit is contained in:
commit
3174554d60
|
@ -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…
Reference in a new issue