前端启动报错:Error: error:0308010C:digital envelope routines::unsupported
修改ruoyi-ui/package.json,添加export NODE_OPTIONS=–openssl-legacy-provider &&
"scripts": {
"dev": "export NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
"build:prod": "export NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
"build:stage": "export NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build --mode staging",
"preview": "node build/index.js --preview",
"lint": "eslint --ext .js,.vue src"
}
添加配置,使SpringAdmin可以查看各个系统的日志
以ruoyi-system为例,在ruoyi-system-dev.yml中添加日志为文件路径:
# spring boot admin 监控系统日志配置
management:
endpoint:
logfile:
external-file: logs/ruoyi-system/info.log
配置成功的效果: