mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-21 16:00:26 +01:00
removed webserver.init
This commit is contained in:
2
app.js
2
app.js
@@ -144,7 +144,7 @@ function start() {
|
||||
|
||||
async.waterfall([
|
||||
async.apply(plugins.ready),
|
||||
async.apply(webserver.init),
|
||||
async.apply(meta.templates.compile),
|
||||
async.apply(webserver.listen)
|
||||
], function(err) {
|
||||
if (err) {
|
||||
|
||||
@@ -117,17 +117,11 @@ if(nconf.get('ssl')) {
|
||||
|
||||
module.exports.server = server;
|
||||
|
||||
module.exports.init = function(callback) {
|
||||
|
||||
emitter.all(['templates:compiled', 'meta:js.compiled', 'meta:css.compiled'], function() {
|
||||
winston.info('NodeBB Ready');
|
||||
emitter.emit('nodebb:ready');
|
||||
emitter.removeAllListeners('templates:compiled').removeAllListeners('meta:js.compiled').removeAllListeners('meta:css.compiled');
|
||||
});
|
||||
|
||||
meta.templates.compile(callback);
|
||||
};
|
||||
|
||||
module.exports.listen = function(callback) {
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user