Skip to content

Node.js based forum software built for the modern web

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

psychobunny646f0f00b32f
diff --git a/src/webserver.js b/src/webserver.js
index efd42de0ec..2443d4570c 100644
--- a/src/webserver.js
+++ b/src/webserver.js
@@ -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',