Browse Source

feat:打印types日志

dev
zhaobing’ 1 year ago
parent
commit
2a33572a12
  1. 6
      api/config.js

6
api/config.js

@ -64,7 +64,7 @@ args.option('vcmpAppSecret', '视频平台 应用秘钥')
//设备升级 //设备升级
args.option('apiCrawUrl', '设备升级') args.option('apiCrawUrl', '设备升级')
args.option('types', '上传文件格式')
const flags = args.parse(process.argv); const flags = args.parse(process.argv);
const POMS_DB = process.env.POMS_DB || flags.pg; const POMS_DB = process.env.POMS_DB || flags.pg;
@ -152,8 +152,8 @@ const ANXINCLOUD_ES_NODES_REST = process.env.ANXINCLOUD_ES_NODES_REST || flags.e
// const BUSINESS_KEY=process.env.BUSINESS_KEY||['160','161'] // const BUSINESS_KEY=process.env.BUSINESS_KEY||['160','161']
//文件上传类型限制(主要是固件升级上传固件包) //文件上传类型限制(主要是固件升级上传固件包)
const TYPES= process.env.TYPES&&process.env.TYPES.split(',')||['.bin'] const TYPES= process.env.TYPES&&process.env.TYPES.split(',')||flags.types.split(',')
console.log('process.env.TYPES',process.env.TYPES,TYPES)
const requireParams = { const requireParams = {
FS_CAMUNDA_HOST, FS_CAMUNDA_ROOT, FS_CAMUNDA_HOST, FS_CAMUNDA_ROOT,
POMS_DB, POMS_DB,

Loading…
Cancel
Save