zero downtime and reload support with cluster module

This commit is contained in:
Julian Lam
2014-09-04 17:09:57 -04:00
parent 3918b29233
commit 08abbe19bc
7 changed files with 65 additions and 24 deletions

View File

@@ -41,7 +41,7 @@ if(nconf.get('ssl')) {
emailer.registerApp(app);
notifications.init();
if (process.env.cluster_setup === 'true') {
if (cluster.isWorker && process.env.cluster_setup === 'true') {
user.startJobs();
}
@@ -50,7 +50,7 @@ if(nconf.get('ssl')) {
meta.js.minify(app.enabled('minification'));
meta.css.minify();
if (process.env.cluster_setup === 'true') {
if (cluster.isWorker && process.env.cluster_setup === 'true') {
meta.sounds.init();
}
});