Explorar o código

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

Shun Miyazawa %!s(int64=2) %!d(string=hai) anos
pai
achega
74b4ae156e
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      apps/app/src/server/crowi/index.js

+ 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;
 };