Merge pull request #4104 from ycombinator/parameterize-port

Parameterize Kibana port for development setup
This commit is contained in:
Chris Cowan 2015-06-03 15:27:26 -07:00
commit 3174554d60
2 changed files with 4 additions and 1 deletions

View file

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

View file

@ -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']
}));
};