Skip to content

Commit

Permalink
Parameterize Kibana port
Browse files Browse the repository at this point in the history
  • Loading branch information
ycombinator committed Jun 3, 2015
1 parent e3f0479 commit 6f401c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tasks/kibana_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion tasks/maybe_start_kibana.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']
}));
};

0 comments on commit 6f401c1

Please sign in to comment.