reorg so.* to sol.*

This commit is contained in:
陆柯 2021-05-09 15:51:58 +08:00
parent a0c355d069
commit 698c925c36
2 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
{
"name": "so.webserver",
"name": "sol.webserver",
"version": "1.0.0",
"description": "Launch web server",
"main": "server.js",
@ -15,8 +15,8 @@
"morgan": "^1.9.0",
"multer": "^1.4.2",
"serve-favicon": "^2.5.0",
"so.sysconfig": "git+https://git.faronear.org/npm/so.sysconfig",
"so.webtoken": "git+https://git.faronear.org/npm/so.webtoken",
"sol.sysconfig": "git+https://git.faronear.org/npm/sol.sysconfig",
"sol.webtoken": "git+https://git.faronear.org/npm/sol.webtoken",
"vhost": "^3.0.2"
},
"devDependencies": {

View File

@ -1,7 +1,7 @@
const fs = require('fs')
const path = require('path')
const Config = require('so.sysconfig')({
const Config = require('sol.sysconfig')({
commanderOptions: [
// 命令行里可以接受的参数。将传给 config.js 里的 commander。每个参数的定义格式是 [参数名,参数键,描述]后两者用于传给commander取值后覆盖掉Config里的同名变量。
['protocol', '-P, --protocol <string>', 'Web Server protocol: http|https|httpall.'],
@ -29,7 +29,7 @@ if (typeof Config.ssl === 'string') {
const express = require('express')
const server = express()
const webtoken = require('so.webtoken')
const webtoken = require('sol.webtoken')
/*** 通用中间件 ***/
server.use(require('morgan')('development' === Config.runenv ? 'dev' : 'combined'))