mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[grunt] fix maybe_start_kibana
This commit is contained in:
parent
1cdcb644c7
commit
4c744b9e5c
1 changed files with 2 additions and 4 deletions
|
@ -6,7 +6,7 @@ module.exports = function (grunt) {
|
|||
var http = require('http');
|
||||
var opts = {
|
||||
method: 'HEAD',
|
||||
path: '/',
|
||||
path: '/status/health',
|
||||
host: 'localhost',
|
||||
port: options.port
|
||||
};
|
||||
|
@ -17,9 +17,7 @@ module.exports = function (grunt) {
|
|||
|
||||
function onResponse(res) {
|
||||
grunt.log.debug('Server responded with', res.statusCode);
|
||||
var app = res.headers['x-app-name'];
|
||||
|
||||
if (res.statusCode === 200 && app && app === 'kibana') {
|
||||
if (res.statusCode === 200) {
|
||||
grunt.log.ok('Kibana server already started on port', options.port);
|
||||
} else {
|
||||
grunt.log.error('Another server is already running on port', options.port);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue