rename sol.sysconfig to sol.enviconfig

This commit is contained in:
陆柯 2021-06-19 20:00:38 +08:00
parent 698c925c36
commit b47663d35c
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@
"morgan": "^1.9.0",
"multer": "^1.4.2",
"serve-favicon": "^2.5.0",
"sol.sysconfig": "git+https://git.faronear.org/npm/sol.sysconfig",
"sol.enviconfig": "git+https://git.faronear.org/npm/sol.enviconfig",
"sol.webtoken": "git+https://git.faronear.org/npm/sol.webtoken",
"vhost": "^3.0.2"
},

View File

@ -1,7 +1,7 @@
const fs = require('fs')
const path = require('path')
const Config = require('sol.sysconfig')({
const Config = require('sol.enviconfig')({
commanderOptions: [
// 命令行里可以接受的参数。将传给 config.js 里的 commander。每个参数的定义格式是 [参数名,参数键,描述]后两者用于传给commander取值后覆盖掉Config里的同名变量。
['protocol', '-P, --protocol <string>', 'Web Server protocol: http|https|httpall.'],