docs(deploy): rsync 排除 config/(部署态含真实密码,防覆盖)

This commit is contained in:
2026-07-07 07:23:14 +08:00
parent 395a6bcb8c
commit 8ab2acc992
+1 -1
View File
@@ -51,7 +51,7 @@ DEST=admin@192.168.2.154:~/.sanguo_projects/sanguo_vnpy_v2/
# 1) 同步代码(已排除数据/缓存)
sshpass -e rsync -avz --delete \
--exclude='.git' '__pycache__' '*.pyc' '.pytest_cache' \
--exclude='data/' 'logs/' 'temp/' '*.log' '.DS_Store' '.venv/' 'node_modules/' \
--exclude='data/' 'logs/' 'temp/' '*.log' '.DS_Store' '.venv/' 'node_modules/' 'config/' \
-e "ssh -o StrictHostKeyChecking=no" \
"$SRC" "$DEST"