1
This commit is contained in:
parent
e625a27315
commit
01cde7d94d
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user