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

34 lines
1.7 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/VPS 部署:/opt/cc-squaregit 项目)
- 架构:前端 → nginx(/api rewrite) → Node(Express,48080) → MySQL(只读) + Redis(点击/排序)
- 关键:MySQL 仅只读,点击次数只存 RedisZINCRBY/ZREVRANGE 纯点击倒序),不落库
- 初始化脚本:npm run init-redis(需先注入 MYSQL_PASSWORD/REDIS_PASSWORD 环境变量)
- 文档:DEPLOY.md(部署/更新流程)/ FRONTEND-CHANGES.md(前端改造)
- 部署(2026-08-12 生产生效):pm2 运行于 VPS,端口 48080,内存 ~45MB
- 前端已改造:baseUrl=/api + http.js(去认证) + nav.js(/tab/) + vite dev 代理=本机48080;鉴权已彻底清理(删 auth/token/login/qs)
- bookmark 已修复:排除 nav-left,返回 website 字段
- 密码:MySQL readonly 135246Redis 5gynj20J(放 .env 不入 git
- git 工作流:改代码→commit→push→VPS git pull→pm2 restart;禁止 scp 直接改 VPS 生产文件
## 工作日志
- 2026-08-12(去 Spring Boot 化 + Node 服务 VPS 部署):memory/2026-08-12.md
## 项目结构
- 详细结构文档(前端 cc-square / 后端 ruoyi-vue-pro 各模块 / tab 调用链):memory/project-structure.md
## 工作规范
- 全部使用中文
- 数据库只读,绝不写库
- 修改配置/文件前先确认