c4de6716f1
Re-add the deploy exclude file and protect .tailscale so rsync --delete cannot remove production-only runtime data. Co-authored-by: Cursor <cursoragent@cursor.com>
58 lines
2.0 KiB
Plaintext
58 lines
2.0 KiB
Plaintext
# ============================================================
|
|
# rsync 排除规则:本地 dev → Studio(100) 生产
|
|
# 所有列出的路径均相对于项目根目录
|
|
# ============================================================
|
|
|
|
# ── 机密配置(绝不覆盖,Studio 自己维护)──────────────────
|
|
.env
|
|
|
|
# ── 生产用户数据(绝对不能覆盖)──────────────────────────
|
|
MindSpace/
|
|
data/
|
|
users/
|
|
.tailscale/
|
|
|
|
# ── 运行时临时文件 ────────────────────────────────────────
|
|
temp/
|
|
*.pid
|
|
.h5.pid
|
|
*.log
|
|
h5.log
|
|
|
|
# ── 构建产物(在 Studio 本地构建,不从 dev 覆盖)─────────
|
|
node_modules/
|
|
ops/node_modules/
|
|
dist/
|
|
ops/dist/
|
|
|
|
# ── 版本控制 ──────────────────────────────────────────────
|
|
.git/
|
|
.gitignore
|
|
.DS_Store
|
|
|
|
# ── 本地开发专用(不上生产)──────────────────────────────
|
|
.claude/
|
|
.local/
|
|
|
|
# ── Studio LaunchAgent 启动脚本(由 plist 直接引用,删除即服务无法重启)──
|
|
scripts/run-memind-portal-prod.sh
|
|
scripts/run-plaza-prod.sh
|
|
scripts/memind-fwd-tunnel.sh
|
|
scripts/install-prod-services.sh
|
|
|
|
# ── 生产运营工具(只在 Studio 上使用,dev 无需保留)──────
|
|
scripts/compensate-user-billing.mjs
|
|
scripts/plaza-demo-posts.mjs
|
|
|
|
# ── 生产媒体资源(运营上传,dev 仓库不维护)──────────────
|
|
public/plaza-covers/
|
|
|
|
# ── Studio 生产端独立管理的配置(不从 dev 覆盖)──────────
|
|
# LB 权重配置直接在 Studio 上用 caddy reload 调整
|
|
scripts/g2-lb.Caddyfile
|
|
scripts/g2-lb.Caddyfile.active
|
|
scripts/g2-lb.Caddyfile.bak-*
|
|
# 生产备份,只在 Studio 存在
|
|
server.mjs.bak-*
|
|
*.bak-20*
|