kibana/tasks/config/run.js

36 lines
836 B
JavaScript
Raw Normal View History

module.exports = function (grunt) {
2015-01-20 01:22:13 +01:00
var os = require('os');
var arch = os.arch();
var platform = os.platform();
2014-09-04 00:15:58 +02:00
// config:
// wait: should task wait until the script exits before finishing
// ready: if not waiting, then how do we know the process is ready?
// quiet: ignore stdout from the process
// failOnError: the process is killed if output to stderr
var options = {
wait: false,
ready: /kibana server started/i,
quiet: true,
failOnError: true
};
var args = ['-H', '127.0.0.1'];
var config = {
2014-10-10 19:33:48 +02:00
built_kibana: {
options: {
wait: false,
2015-02-05 23:40:44 +01:00
ready: /Listening/i,
quiet: true,
failOnError: false
2014-10-10 19:33:48 +02:00
},
2015-01-20 01:22:13 +01:00
cmd: './target/<%= pkg.name + "-" + pkg.version %>-' + platform + '-' + arch + '/bin/kibana',
args: args
}
};
return config;
};