|
@ -66,20 +66,11 @@ const QINIU_AK = process.env.ANXINCLOUD_QINIU_ACCESSKEY || flags.qnak; |
|
|
const QINIU_SK = process.env.ANXINCLOUD_QINIU_SECRETKEY || flags.qnsk; |
|
|
const QINIU_SK = process.env.ANXINCLOUD_QINIU_SECRETKEY || flags.qnsk; |
|
|
|
|
|
|
|
|
// clickHouse
|
|
|
// clickHouse
|
|
|
const CLICKHOUST_URL = rocess.env.CLICKHOUST_URL || flags.clickHouseUrl |
|
|
const CLICKHOUST_URL = process.env.CLICKHOUST_URL || flags.clickHouseUrl |
|
|
const CLICKHOUST_PORT = rocess.env.CLICKHOUST_PORT || flags.clickHousePort |
|
|
const CLICKHOUST_PORT = process.env.CLICKHOUST_PORT || flags.clickHousePort |
|
|
const CLICKHOUST_ANXINCLOUD_DB = rocess.env.CLICKHOUST_ANXINCLOUD_DB || flags.clickHouseAnxincloudDB |
|
|
const CLICKHOUST_ANXINCLOUD_DB = process.env.CLICKHOUST_ANXINCLOUD_DB || flags.clickHouseAnxincloudDB |
|
|
const CLICKHOUST_PEPEMIS_DB = rocess.env.CLICKHOUST_PEPEMIS_DB || flags.clickHousePepEmisDB |
|
|
const CLICKHOUST_PEP_EMIS_DB = process.env.CLICKHOUST_PEP_EMIS_DB || flags.clickHousePepEmisDB |
|
|
const CLICKHOUST_PROJECT = rocess.env.CLICKHOUST_PORT || flags.clickHousePort |
|
|
const CLICKHOUST_PROJECT_MANAGE_DB = process.env.CLICKHOUST_PROJECT_MANAGE_DB || flags.clickHouseProjectManageDB |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log('params', POMS_DB, |
|
|
|
|
|
IOTA_REDIS_SERVER_HOST, IOTA_REDIS_SERVER_PORT, |
|
|
|
|
|
GOD_KEY, |
|
|
|
|
|
API_ANXINYUN_URL, |
|
|
|
|
|
API_EMIS_URL, |
|
|
|
|
|
QINIU_DOMAIN_QNDMN_RESOURCE, QINIU_BUCKET_RESOURCE, QINIU_AK, QINIU_SK |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
if ( |
|
|
if ( |
|
|
!POMS_DB || |
|
|
!POMS_DB || |
|
@ -87,7 +78,8 @@ if ( |
|
|
!GOD_KEY || |
|
|
!GOD_KEY || |
|
|
!API_ANXINYUN_URL || |
|
|
!API_ANXINYUN_URL || |
|
|
!API_EMIS_URL || |
|
|
!API_EMIS_URL || |
|
|
!QINIU_DOMAIN_QNDMN_RESOURCE || !QINIU_BUCKET_RESOURCE || !QINIU_AK || !QINIU_SK |
|
|
!QINIU_DOMAIN_QNDMN_RESOURCE || !QINIU_BUCKET_RESOURCE || !QINIU_AK || !QINIU_SK || |
|
|
|
|
|
!CLICKHOUST_URL || !CLICKHOUST_PORT || !CLICKHOUST_ANXINCLOUD_DB || !CLICKHOUST_PEP_EMIS_DB || !CLICKHOUST_PROJECT_MANAGE_DB |
|
|
) { |
|
|
) { |
|
|
console.log('缺少启动参数,异常退出'); |
|
|
console.log('缺少启动参数,异常退出'); |
|
|
args.showHelp(); |
|
|
args.showHelp(); |
|
|