zmh 2 years ago
parent
commit
1aa2afdcd1
  1. 8
      web/config.js

8
web/config.js

@ -12,7 +12,7 @@ dev && console.log('\x1B[33m%s\x1b[0m', '请遵循并及时更新 readme.md,
args.option(['p', 'port'], '启动端口');
args.option(['u', 'api-url'], 'webapi的URL');
args.option('apiHrUrl', 'webapi的URL 外网可访问');
args.option(['d', 'domain'], 'web domain');
args.option(['d', 'domain'], '项企的顶级域名 domain');
args.option('webPepUrl', '企业管理 web');
@ -28,7 +28,7 @@ const flags = args.parse(process.argv);
const API_URL = process.env.API_URL || flags.apiUrl;
const API_DC_URL = process.env.API_DC_URL || flags.apiHrUrl;
const FS_REPORT_DOMAIN = process.FS_REPORT_DOMAIN || flags.domain;
const FS_PEP_DOMAIN = process.FS_REPORT_DOMAIN || flags.domain;
const WEB_PEP_URL = process.env.WEB_PEP_URL || flags.webPepUrl;
// 七牛
@ -43,6 +43,8 @@ const ANXINCLOUD_PM_SERVICES = process.env.ANXINCLOUD_PM_SERVICES || flags.pmrs;
if (
!API_URL
|| !API_DC_URL
|| !WEB_PEP_URL
|| !FS_PEP_DOMAIN
|| !ANXINCLOUD_QINIU_AK || !ANXINCLOUD_QINIU_SK || !ANXINCLOUD_QINIU_BUCKET_RESOURCE || !ANXINCLOUD_QINIU_DOMAIN_QNDMN_RESOURCE
) {
console.log('缺少启动参数,异常退出');
@ -83,7 +85,7 @@ const product = {
service: {
url: ANXINCLOUD_PM_SERVICES
},
domain: FS_REPORT_DOMAIN,
domain: FS_PEP_DOMAIN,
webPepUrl: WEB_PEP_URL
}
}, {

Loading…
Cancel
Save