mirror of
https://github.com/YMFE/yapi.git
synced 2025-03-01 14:05:44 +08:00
opti: npm run server to npm run start
This commit is contained in:
parent
1fd7ef7781
commit
9e30916081
@ -8,7 +8,7 @@
|
||||
"install-server": " node server/install.js",
|
||||
"dev-client": "ykit s -p 4000",
|
||||
"dev": "npm run dev-server & npm run dev-client",
|
||||
"server": " node server/app.js"
|
||||
"start": " node server/app.js"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
@ -14,7 +14,7 @@ const WEBCONFIG = config;
|
||||
|
||||
fs.ensureDirSync(WEBROOT_LOG);
|
||||
|
||||
if (WEBCONFIG.mail) {
|
||||
if (WEBCONFIG.mail && WEBCONFIG.mail.enable ) {
|
||||
mail = nodemailer.createTransport(WEBCONFIG.mail);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user