mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
testing
This commit is contained in:
11
app.js
11
app.js
@@ -103,6 +103,15 @@ function loadConfig() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function start() {
|
function start() {
|
||||||
|
|
||||||
|
var cluster = require('cluster');
|
||||||
|
|
||||||
|
if (cluster.isMaster) {
|
||||||
|
for(var i=0; i<2; ++i) {
|
||||||
|
cluster.fork();
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
|
||||||
loadConfig();
|
loadConfig();
|
||||||
|
|
||||||
winston.info('Time: ' + new Date());
|
winston.info('Time: ' + new Date());
|
||||||
@@ -174,6 +183,8 @@ function start() {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function setup() {
|
function setup() {
|
||||||
|
|||||||
@@ -114,11 +114,11 @@ if(nconf.get('ssl')) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
emitter.on('templates:compiled', function() {
|
emitter.on('templates:compiled', function() {
|
||||||
if (process.send) {
|
//if (process.send) {
|
||||||
callback();
|
// callback();
|
||||||
} else {
|
//} else {
|
||||||
module.exports.listen();
|
module.exports.listen();
|
||||||
}
|
//}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user