日志处理

This commit is contained in:
luying
2020-12-04 10:19:42 +08:00
parent 3f89085588
commit 77ad3d93ed
6 changed files with 313 additions and 4 deletions

View File

@@ -28,8 +28,8 @@ export default (appInfo: EggAppInfo) => {
config.alinode = {
appid: '86043',
secret: '54ef0364995b0c4f2ab42150e29ad30df8327a3a',
error_log: [ '/root/logs/zyz/zyz-web.log', '/root/logs/zyz/common-error.log', '/root/logs/zyz/egg-agent.log' ],
packages: [ '/root/zyz/web-server/package.json' ],
error_log: [ '${appInfo.root}/logs/${appInfo.name}/zyz-web.log', '${appInfo.root}/logs/${appInfo.name}/common-error.log', '${appInfo.root}/logs/${appInfo.name}/egg-agent.log' ],
packages: [ '${appInfo.baseDir}/package.json' ],
};
config.view = {

View File

@@ -1,5 +1,5 @@
{
"name": "zyz",
"name": "web-server",
"version": "1.0.0",
"description": "zyz-web-server",
"private": true,