File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 11'use strict' ;
22
33const cluster = require ( 'cluster' ) ;
4- const { config } = require ( './lib/config/constants.js' ) ;
54const { watch } = require ( 'fs' ) ;
6- const logger = require ( './lib/util/loggerFactory.js' ) ;
7- const Proxy = require ( './lib/core/Proxy.js' ) ;
5+ const path = require ( 'path' ) ;
6+
7+ const codeDir = process . env . CODE_DIR || path . join ( __dirname , '/' ) ;
8+ const { config } = require ( path . join ( codeDir , 'lib/config/constants.js' ) ) ;
9+ const logger = require ( path . join ( codeDir , 'lib/util/loggerFactory.js' ) ) ;
10+ const Proxy = require ( path . join ( codeDir , 'lib/core/Proxy.js' ) ) ;
811
912const WORKER_CNT = config . workerVal ;
1013const activeWorkers = [ ] ;
1114
12- const path = require ( 'path' ) ;
13-
14- const RESTART_FILE = path . join ( __dirname , 'tmp' , 'restart.txt' ) ;
15+ const RESTART_FILE = path . join ( codeDir , 'tmp/restart.txt' ) ;
1516
1617const forceKill = ( worker ) => {
1718 if ( ! worker . isDead ( ) ) {
You can’t perform that action at this time.
0 commit comments