fix(server): 日志输出目录改为项目内server/logs,避免写入用户主目录导致EPERM权限报错;同步yarn.lock
This commit is contained in:
1 parent
09f7345e8a
commit
502175930e
2 files changed
+11
-1
No files matched your search
@@ -23,6 +23,16 @@ export default {
|
||||
port: 7001
|
||||
},
|
||||
|
||||
// 日志输出目录(显式指定到项目内 server/logs,避免写入用户主目录导致 EPERM 权限报错)
|
||||
logger: {
|
||||
dir: join(envDir, "logs"),
|
||||
appLogName: "midway-app.log",
|
||||
coreLogName: "midway-core.log",
|
||||
errorLogName: "common-error.log",
|
||||
enableError: true,
|
||||
maxFiles: "30d"
|
||||
},
|
||||
|
||||
sequelize: {
|
||||
dataSource: {
|
||||
default: {
|
||||
|
||||
Reference in new issue
Block a user