reorg so.* to sol.*
This commit is contained in:
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user