From f7ba455bd392f1c56de9877d39c0cfb4e25cd99b Mon Sep 17 00:00:00 2001 From: wenlele Date: Tue, 17 Jan 2023 15:47:50 +0800 Subject: [PATCH] XUNJIAN_DB --- api/config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/config.js b/api/config.js index dd0a93b..bf55193 100644 --- a/api/config.js +++ b/api/config.js @@ -23,7 +23,7 @@ args.option('aliOssRegion', '阿里OSS Region'); const flags = args.parse(process.argv); -const ZHONGDING_DB = process.env.ZHONGDING_DB || flags.pg; +const XUNJIAN_DB = process.env.XUNJIAN_DB || flags.pg; // 七牛云存储参数 const QINIU_DOMAIN_QNDMN_RESOURCE = process.env.ANXINCLOUD_QINIU_DOMAIN_QNDMN_RESOURCE || flags.qndmn; @@ -37,7 +37,7 @@ const ALI_OSS_SECRETKET = process.env.ALI_OSS_SECRETKET || flags.aliOssSecretKey const ALI_OSS_BUCKET = process.env.ALI_OSS_BUCKET || flags.aliOssBucket; const ALI_OSS_REGION = process.env.ALI_OSS_REGION || flags.aliOssRegion; -if (!ZHONGDING_DB || !QINIU_DOMAIN_QNDMN_RESOURCE || !QINIU_BUCKET_RESOURCE || !QINIU_AK || !QINIU_SK) { +if (!XUNJIAN_DB || !QINIU_DOMAIN_QNDMN_RESOURCE || !QINIU_BUCKET_RESOURCE || !QINIU_AK || !QINIU_SK) { console.log('缺少启动参数,异常退出'); args.showHelp(); process.exit(-1); @@ -96,7 +96,7 @@ const product = { } ], dc: { - url: ZHONGDING_DB, + url: XUNJIAN_DB, opts: { pool: { max: 80,