Files
openclaw-config/workspace-cc/MEMORY.md
T
2026-08-12 22:00:07 +08:00

29 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# cc 长期记忆
## 项目
- 前端 cc-square/home/yangxuan/cc-square
- 后端 yudao/home/yangxuan/ruoyi-vue-pro
## 数据库
- MySQL localhost:3306,用户 readonly(只读),仅 SELECT(库名 ruoyi-vue-pro270 张表)
- 公网 MySQL101.34.227.188:3306readonlyhost `%`(可任意来源直连)
- 公网 Redis101.34.227.188:6379AOF 持久化已支持)
## cc-square Node 轻服务(2026-08 替代 Spring Boot
- 位置:/home/yangxuan/cc-square/server/
- 架构:前端 → Node(Express) → MySQL(只读) + Redis(点击计数/排行)
- 关键:MySQL 仅只读,点击次数只存 RedisZINCRBY/ZREVRANGE 纯点击倒序)
- 初始化脚本:npm run init-redis(需先注入 MYSQL_PASSWORD/REDIS_PASSWORD 环境变量)
- 文档:DEPLOY.md(部署)/ FRONTEND-CHANGES.md(前端改造)
- 部署状态(2026-08-12):pm2 运行中,端口 48080,内存 ~45MB,内存占用远低于原 Spring Boot
- 前端已改造:env.js(baseUrl 同源) + http.js(去认证) + nav.js(/app-api/tab/ → /tab/),已 build 产物入 public/
- 密码:MySQL readonly 密码 135246Redis 密码 5gynj20J(存放于 server/.env,供 Node 服务启动用)
## 项目结构
- 详细结构文档(前端 cc-square / 后端 ruoyi-vue-pro 各模块 / tab 调用链):memory/project-structure.md
## 工作规范
- 全部使用中文
- 数据库只读,绝不写库
- 修改配置/文件前先确认