Przeglądaj źródła

Call autoInstall before express listen

Shun Miyazawa 2 lat temu
rodzic
commit
a6c09d3d0f
1 zmienionych plików z 2 dodań i 2 usunięć
  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;
 };