mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
removed cluster from app.js
This commit is contained in:
10
app.js
10
app.js
@@ -104,14 +104,6 @@ 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());
|
||||
@@ -183,8 +175,6 @@ function start() {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
function setup() {
|
||||
|
||||
@@ -97,7 +97,7 @@ nconf.argv();
|
||||
|
||||
cluster.setupMaster({
|
||||
exec: "app.js",
|
||||
silent: true
|
||||
silent: false
|
||||
});
|
||||
|
||||
for(var x=0;x<numCPUs;x++) {
|
||||
|
||||
@@ -121,11 +121,11 @@ if(nconf.get('ssl')) {
|
||||
});
|
||||
|
||||
emitter.on('templates:compiled', function() {
|
||||
//if (process.send) {
|
||||
// callback();
|
||||
//} else {
|
||||
if (process.send) {
|
||||
callback();
|
||||
} else {
|
||||
module.exports.listen();
|
||||
//}
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user