Explorar o código

Call autoInstall before express listen

Shun Miyazawa %!s(int64=2) %!d(string=hai) anos
pai
achega
a6c09d3d0f
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

@@ -483,6 +483,8 @@ Crowi.prototype.start = async function() {
   instantiateYjsConnectionManager(this.socketIoService.io);
   this.socketIoService.setupYjsConnection();
 
+  this.autoInstall();
+
   // listen
   const serverListening = httpServer.listen(this.port, () => {
     logger.info(`[${this.node_env}] Express server is listening on port ${this.port}`);
@@ -501,8 +503,6 @@ 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;
 };