mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
move "NodeBB Ready" message to when it's actually ready
This commit is contained in:
@@ -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() {
|
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;
|
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);
|
winston.info('NodeBB attempting to listen on: ' + bind_address);
|
||||||
|
|
||||||
server.listen(port, nconf.get('bind_address'), function(){
|
server.listen(port, nconf.get('bind_address'), function(){
|
||||||
winston.info('NodeBB Ready');
|
winston.info('NodeBB is now listening on: ' + bind_address);
|
||||||
if (process.send) {
|
if (process.send) {
|
||||||
process.send({
|
process.send({
|
||||||
action: 'ready',
|
action: 'ready',
|
||||||
|
|||||||
Reference in New Issue
Block a user