2015-01-14 22:46:04 +01:00
|
|
|
module.exports = function (grunt) {
|
|
|
|
grunt.registerTask('kibana_server', function (keepalive) {
|
|
|
|
var done = this.async();
|
|
|
|
var config = require('../src/server/config');
|
|
|
|
config.quiet = true;
|
|
|
|
var server = require('../src/server');
|
2015-01-21 19:16:14 +01:00
|
|
|
|
2015-02-02 23:54:24 +01:00
|
|
|
server.start(function (err) {
|
|
|
|
if (err) return done(err);
|
2015-01-21 19:16:14 +01:00
|
|
|
grunt.log.ok('Server started on port', config.kibana.port);
|
2015-01-14 22:46:04 +01:00
|
|
|
if (keepalive !== 'keepalive') done();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|