docs(deploy): rsync 排除 config/(部署态含真实密码,防覆盖)
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user