Browse Source

feat:注释ck商用数据库配置信息

master
zhaobing 1 year ago
parent
commit
b8890d3861
  1. 11
      api/config.js

11
api/config.js

@ -74,21 +74,16 @@ const API_CRAW_URL = process.env.API_CRAW_URL || flags.apiCrawUrl;
const CLICKHOUST_URL = process.env.CLICKHOUST_URL || flags.clickHouseUrl
const CLICKHOUST_PORT = process.env.CLICKHOUST_PORT || flags.clickHousePort
const CLICKHOUST_USER = process.env.CLICKHOUST_USER || flags.clickHouseUser
const CLICKHOUST_PASSWORD = process.env.CLICKHOUST_PASSWORD || 'Wbo@hi1I'
// const CLICKHOUST_PASSWORD = process.env.CLICKHOUST_PASSWORD || flags.clickHousePassword
const CLICKHOUST_DATA_ALARM = process.env.CLICKHOUST_DATA_ALARM || flags.clickHouseDataAlarm
const CLICKHOUST_IOT = process.env.CLICKHOUST_IOT || flags.clickHouseIot
if (!XUNJIAN_DB || !QINIU_DOMAIN_QNDMN_RESOURCE || !QINIU_BUCKET_RESOURCE || !QINIU_AK || !QINIU_SK || !WX_DOMAIN || !WX_APP_ID || !WX_APP_SECRET || !API_ANXINYUN_URL|| !AXY_BZ_PROJECT
||!IOT_PROXY||!API_CRAW_URL||!CLICKHOUST_URL||!CLICKHOUST_PORT||!CLICKHOUST_USER||!CLICKHOUST_PASSWORD||!CLICKHOUST_IOT
||!IOT_PROXY||!API_CRAW_URL||!CLICKHOUST_URL||!CLICKHOUST_PORT||!CLICKHOUST_USER||!CLICKHOUST_IOT
//!CLICKHOUST_PASSWORD||
) {
console.log('缺少启动参数,异常退出');
console.log('缺少启动参数,异常退出',
XUNJIAN_DB,QINIU_DOMAIN_QNDMN_RESOURCE ,QINIU_BUCKET_RESOURCE,QINIU_AK,QINIU_SK,WX_DOMAIN,WX_APP_ID,WX_APP_SECRET,API_ANXINYUN_URL,AXY_BZ_PROJECT
,IOT_PROXY,API_CRAW_URL,CLICKHOUST_URL,CLICKHOUST_PORT,CLICKHOUST_USER,CLICKHOUST_PASSWORD,CLICKHOUST_IOT
);
args.showHelp();
process.exit(-1);
}

Loading…
Cancel
Save