mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
testing
This commit is contained in:
11
app.js
11
app.js
@@ -103,6 +103,15 @@ function loadConfig() {
|
||||
}
|
||||
|
||||
function start() {
|
||||
|
||||
var cluster = require('cluster');
|
||||
|
||||
if (cluster.isMaster) {
|
||||
for(var i=0; i<2; ++i) {
|
||||
cluster.fork();
|
||||
}
|
||||
} else {
|
||||
|
||||
loadConfig();
|
||||
|
||||
winston.info('Time: ' + new Date());
|
||||
@@ -174,6 +183,8 @@ function start() {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
function setup() {
|
||||
|
||||
Reference in New Issue
Block a user