move "NodeBB Ready" message to when it's actually ready

v1.18.x
psychobunny 11 years ago
parent 5891246700
commit 646f0f00b3

@ -107,12 +107,16 @@ if(nconf.get('ssl')) {
}
});
emitter.all(['templates:compiled', 'meta:js.compiled', 'meta:css.compiled'], function() {
winston.info('NodeBB Ready');
});
emitter.on('templates:compiled', function() {
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');
winston.info('NodeBB is now listening on: ' + bind_address);
if (process.send) {
process.send({
action: 'ready',

Loading…
Cancel
Save