mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-23 20:19:33 +00:00
fix cmd line webserver host override
This commit is contained in:
parent
e9bd2acef5
commit
b42031de6b
@ -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(){});
|
||||||
};
|
};
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user