mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
restart handling and crash detection
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user