abler-tools v1.0.13
彭彭自用包:abler-tools
应用项目公用工具库(合集)
已将以下包合并为一个包:
abler-drm-tool(abler-drm-tool已分离,并依赖此abler-tools包)
安装
npm i abler-tools
引用
const {ppUtil,apiUtil, preconditions, ...} = require("abler-tools");
const conf = require('../config/config');
const errCfg = require('../config/error');
apiUtil.config(conf, err);
......
async function initService() {
// 支持各种服务之前,检查前置条件是否满足
let ok = await preconditions
.addChecker(preconditions.checkExEnvSetting, (jsfile) => require(jsfile), true)
.addChecker(preconditions.initDb)
.addChecker(preconditions.checkRedis)
.addChecker(preconditions.initKvStorage, dbSql)
// .addChecker(checkDbVer, undefined, true)
// .addChecker(commonUtil.initCommonEnv)
// .addChecker(cdsManager.registerDefaultAccounts)
// .addChecker(cdsManager.registerDefaultApp)
.checkAll();
if (!ok) {
setTimeout(() => {
process.exit(0);
}, 500);
// process.exit(199);
return ok;
}
console.log("前置条件检查完毕,启动服务...");
......
}
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
7 months ago
7 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago