restart handling and crash detection

This commit is contained in:
Julian Lam
2014-09-03 15:23:40 -04:00
parent c40355b816
commit de41896770
5 changed files with 61 additions and 27 deletions

View File

@@ -129,7 +129,7 @@ module.exports = function(app, data) {
routeCurrentTheme(app, data.currentThemeId, data.themesData);
routeThemeScreenshots(app, data.themesData);
if (cluster.worker.id === 1) {
if (process.env.cluster_setup === 'true') {
meta.templates.compile();
} else {
setTimeout(function() {