|
|
@ -16,7 +16,7 @@ dev && console.log('\x1B[33m%s\x1b[0m', '请遵循并及时更新 readme.md, |
|
|
|
args.option(['p', 'port'], '启动端口'); |
|
|
|
args.option(['u', 'api-url'], 'webapi的URL'); |
|
|
|
args.option(['r', 'report-node'], '报表进程地址'); |
|
|
|
args.option(['r', 'report-node'], '报表进程地址'); |
|
|
|
args.option('qndmn', '七牛'); |
|
|
|
|
|
|
|
const flags = args.parse(process.argv); |
|
|
|
const FS_UNIAPP_API = process.env.FS_UNIAPP_API || flags.apiUrl; |
|
|
@ -53,6 +53,7 @@ const product = { |
|
|
|
entry: require('./routes').entry, |
|
|
|
opts: { |
|
|
|
apiUrl: FS_UNIAPP_API, |
|
|
|
qndmn: QINIU_DOMAIN_QNDMN_RESOURCE, |
|
|
|
staticRoot: './client', |
|
|
|
} |
|
|
|
}, { |
|
|
|