fix cmd line webserver host override

This commit is contained in:
Iuri Matias 2017-03-06 22:08:43 -05:00
parent e9bd2acef5
commit b42031de6b
2 changed files with 4 additions and 4 deletions

View File

@ -138,8 +138,8 @@ Engine.prototype.webServerService = function(options) {
this.logger.setStatus("Starting Server"); this.logger.setStatus("Starting Server");
var server = new Server({ var server = new Server({
logger: this.logger, logger: this.logger,
host: options.serverHost || webServerConfig.host, host: options.host || webServerConfig.host,
port: options.serverPor || webServerConfig.port port: options.port || webServerConfig.port
}); });
server.start(function(){}); server.start(function(){});
}; };

View File

@ -93,8 +93,8 @@ ServicesMonitor.prototype.check = function() {
}); });
}, },
function checkDevServer(result, callback) { function checkDevServer(result, callback) {
var host = self.config.webServerConfig.host || self.serverHost; var host = self.serverHost || self.config.webServerConfig.host;
var port = self.config.webServerConfig.port || self.serverPort; var port = self.serverPort || self.config.webServerConfig.port;
self.logger.trace('checkDevServer'); self.logger.trace('checkDevServer');
var devServer = 'Webserver (http://' + host + ':' + port + ')'; var devServer = 'Webserver (http://' + host + ':' + port + ')';
devServer = (self.runWebserver) ? devServer.green : devServer.red; devServer = (self.runWebserver) ? devServer.green : devServer.red;