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

Call autoInstall before express listen

Shun Miyazawa 2 жил өмнө
parent
commit
a6c09d3d0f

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

@@ -483,6 +483,8 @@ Crowi.prototype.start = async function() {
   instantiateYjsConnectionManager(this.socketIoService.io);
   instantiateYjsConnectionManager(this.socketIoService.io);
   this.socketIoService.setupYjsConnection();
   this.socketIoService.setupYjsConnection();
 
 
+  this.autoInstall();
+
   // listen
   // listen
   const serverListening = httpServer.listen(this.port, () => {
   const serverListening = httpServer.listen(this.port, () => {
     logger.info(`[${this.node_env}] Express server is listening on port ${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
   // Execute this asynchronously after the express server is ready so it does not block the ongoing process
   this.asyncAfterExpressServerReady();
   this.asyncAfterExpressServerReady();
 
 
-  this.autoInstall();
-
   return serverListening;
   return serverListening;
 };
 };