This commit is contained in:
Julian Lam
2014-04-27 13:32:58 -04:00
parent 8f67252547
commit a32fd3f6f9
2 changed files with 38 additions and 19 deletions

View File

@@ -108,9 +108,17 @@ if(nconf.get('ssl')) {
});
emitter.on('templates:compiled', function() {
winston.info('NodeBB attempting to listen on: ' + ((nconf.get('bind_address') === "0.0.0.0" || !nconf.get('bind_address')) ? '0.0.0.0' : nconf.get('bind_address')) + ':' + port);
var bind_address = ((nconf.get('bind_address') === "0.0.0.0" || !nconf.get('bind_address')) ? '0.0.0.0' : nconf.get('bind_address')) + ':' + port;
winston.info('NodeBB attempting to listen on: ' + bind_address);
server.listen(port, nconf.get('bind_address'), function(){
winston.info('NodeBB Ready');
if (process.send) {
process.send({
action: 'ready',
bind_address: bind_address
});
}
});
});
};