|
|
@ -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); |
|
|
|
} |
|
|
|