Files
cloud-chip.cn/.workbuddy/memory/MEMORY.md
T
2026-08-08 23:40:18 +08:00

16 lines
1.5 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.
# 项目长期记忆(curated
## 关键事实
- **cloud-chip.cn 网站/业务 与 coolcoth.com 网站/业务 没有任何关系**(非同一主体/品牌)。
- 代码托管(Gitea)在 `git.coolcoth.com`,该地址**正确、保持不动**coolcoth.com 在此仅作 Git 托管基础设施,不代表两网站有关联。勿因 git 主机在 coolcoth.com 而误判归属。
- push-to-deploy 架构:Gitea 推送 → webhook 接收器(`webhook.cloud-chip.cn`IP 47.107.30.116,同属 cloud-chip.cn 自有服务器)→ 触发站点 `deploy.sh` 执行 `git pull` + `config:clear`/`config:cache`。本工程 `deploy.sh` 只是被叫醒后拉代码的执行体,不负责接收 webhook。
## 服务器/部署约定
- 生产站点根目录:`/www/wwwroot/cloud-chip.cn`Laravel 12 + Vue3 CDN 零构建栈)。
-`config/*` 后必须 `php artisan config:clear`deploy.sh 已内置)。
- 文件归属建议 `www:www`,目录 755 / 文件 644 / 可写目录 775 / `.env` 640。
- 宝塔 WebHook 插件脚本里的 `git add -A && commit -m "实时更新" && push` 自动提交逻辑会制造 origin 分歧、导致后续 `git pull` 拉不进新代码,应删除。
## 待办(未解决)
- 之前本地 5 个提交(含弃用修复、deploy.sh 增强、审计修复)尚未推到 origingit.coolcoth.com 凭据在本机/本环境拿不到,需用户在能弹窗的终端 push);服务器 `/www/wwwroot/cloud-chip.cn` 曾被清空,需重新 clone 拉起。