flyzto 7 tháng trước cách đây
mục cha
commit
cf4d98bc1e
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  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');