mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
check app name header to verify kibana server
This commit is contained in:
parent
a604d70213
commit
490ec226a5
1 changed files with 2 additions and 1 deletions
|
@ -17,8 +17,9 @@ 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) {
|
||||
if (res.statusCode === 200 && app && app === 'kibana') {
|
||||
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