From 2e64e061af9b33c3d1fa77ee1418d169d1bd891d Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Sun, 12 Sep 2021 09:55:35 +0800 Subject: [PATCH] upgrade sol.enviconfig to include mergeConfig and getDynamicConfig --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 0df0a16..673a02b 100644 --- a/server.js +++ b/server.js @@ -4,7 +4,7 @@ const nettool = require('sol.nettool') const express = require('express') const wo = (global.wo = { - envi : require('sol.enviconfig')({ + envi : require('sol.enviconfig').mergeConfig({ commanderOptions: [ // 命令行里可以接受的参数。将传给 config.js 里的 commander。每个参数的定义格式是 [参数名,参数键,描述],后两者用于传给commander,取值后覆盖掉Config里的同名变量。 ['protocol', '-P, --protocol ', 'Web Server protocol: http|https|httpall.'],