Yuki Takei пре 5 година
родитељ
комит
e2afc7f5a0
1 измењених фајлова са 8 додато и 0 уклоњено
  1. 8 0
      packages/growi-bot-proxy/src/index.ts

+ 8 - 0
packages/growi-bot-proxy/src/index.ts

@@ -1,5 +1,8 @@
 import { $log } from '@tsed/common';
 import { PlatformExpress } from '@tsed/platform-express';
+
+import helpers from '^/../../src/lib/util/helpers';
+
 import { Server } from './Server';
 
 async function bootstrap() {
@@ -9,6 +12,11 @@ async function bootstrap() {
 
     await platform.listen();
     $log.debug('Server initialized');
+
+    if (helpers.hasProcessFlag('ci')) {
+      $log.info('"--ci" flag is detected. Exit process.');
+      process.exit();
+    }
   }
   catch (er) {
     $log.error(er);