删掉命令行参数 env。如有需要,请用 process.env.NODE_ENV
This commit is contained in:
parent
5ec9cafcd3
commit
b9e9297375
@ -6,10 +6,8 @@ const Config = require('so.sysconfig')({
|
|||||||
// 命令行里可以接受的参数。将传给 config.js 里的 commander。每个参数的定义格式是 [参数名,参数键,描述],后两者用于传给commander,取值后覆盖掉Config里的同名变量。
|
// 命令行里可以接受的参数。将传给 config.js 里的 commander。每个参数的定义格式是 [参数名,参数键,描述],后两者用于传给commander,取值后覆盖掉Config里的同名变量。
|
||||||
['protocol', '-P, --protocol <string>', 'Web Server protocol: http|https|httpall.'],
|
['protocol', '-P, --protocol <string>', 'Web Server protocol: http|https|httpall.'],
|
||||||
['host', '-H, --host <string>', 'Host IP or domain name, default to localhost.'],
|
['host', '-H, --host <string>', 'Host IP or domain name, default to localhost.'],
|
||||||
|
|
||||||
['port', '-p, --port <number>', 'HTTP port number.'],
|
['port', '-p, --port <number>', 'HTTP port number.'],
|
||||||
['from', '-f, --from <string>', 'Path to serve as website'],
|
['from', '-f, --from <string>', 'Path to serve as website'],
|
||||||
['env', '-e, --env <string>', 'Runtime environment: production | development.'],
|
|
||||||
],
|
],
|
||||||
// 最基础的必须的默认配置,如果用户什么也没有提供
|
// 最基础的必须的默认配置,如果用户什么也没有提供
|
||||||
protocol: 'http',
|
protocol: 'http',
|
||||||
|
Loading…
Reference in New Issue
Block a user