This commit is contained in:
barisusakli
2014-09-02 23:35:24 -04:00
parent e6d0eede4f
commit cbe3b5b6dc
2 changed files with 15 additions and 4 deletions

11
app.js
View File

@@ -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() {