reorg so.* to sol.*

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

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'))