Skip to content

Commit

Permalink
Merge pull request elastic#4104 from ycombinator/parameterize-port
Browse files Browse the repository at this point in the history
Parameterize Kibana port for development setup
  • Loading branch information
simianhacker committed Jun 3, 2015
2 parents e2cf13d + 6f401c1 commit 3174554
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 3174554

Please sign in to comment.