flyzto 7 달 전
부모
커밋
cf4d98bc1e
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      server/models/Games.js

+ 4 - 2
server/models/Games.js

@@ -1,7 +1,9 @@
 const { fork } = require('child_process');
-const events_child = fork('./triangle/eventsMatch.js', [], {
+
+const childOptions = process.env.NODE_ENV == 'development' ? {
   execArgv: ['--inspect=9228']
-});
+} : {};
+const events_child = fork('./triangle/eventsMatch.js', [], childOptions);
 
 const Logs = require('../libs/logs');
 const Relation = require('./Relation');