diff --git a/scripts/cfgcheck/app.js b/scripts/cfgcheck/app.js index f79e0eb..fc5b534 100644 --- a/scripts/cfgcheck/app.js +++ b/scripts/cfgcheck/app.js @@ -3,6 +3,9 @@ const fs = require('fs'); const assert = require('assert'); const constant = require('./constant'); +const BASE_CONF_DIR = '/home/kingsome/opensource/conf/prod/prod'; +const BASE_RES_DIR = '/home/kingsome/opensource/res/prod/prod'; + class CfgChecker { constructor() { @@ -10,13 +13,17 @@ class CfgChecker { } async init() { - await this.addProj(constant.PROJ_WEB3BCSPIDER); + await this.addProj( + constant.PROJ_WEB3BCSPIDER, + BASE_CONF_DIR + '/game2006/web3bcspider_prod/', + ''); } async addProj(projName, confDir, resDir) { const proj = new(require('./projects/' + projName)); proj.confDir = confDir; proj.resDir = resDir; + this.projHash[projName] = proj; console.log('addProj ', projName, confDir, resDir); }