2
0
Эх сурвалжийг харах

Fixed autoInstall() to run after socketIoService.attachServer()

Shun Miyazawa 2 жил өмнө
parent
commit
74b4ae156e

+ 2 - 2
apps/app/src/server/crowi/index.js

@@ -176,8 +176,6 @@ Crowi.prototype.init = async function() {
     this.setupExternalUserGroupSyncService(),
   ]);
 
-  await this.autoInstall();
-
   await normalizeData();
 };
 
@@ -505,6 +503,8 @@ Crowi.prototype.start = async function() {
   // Execute this asynchronously after the express server is ready so it does not block the ongoing process
   this.asyncAfterExpressServerReady();
 
+  this.autoInstall();
+
   return serverListening;
 };