Deploy: exdev sync 2026-08-13 14:48:13

This commit is contained in:
bkyungee
2026-08-13 14:48:14 +09:00
parent fb4179eaa5
commit 493b07ec30
4 changed files with 54 additions and 1 deletions
+3 -1
View File
@@ -103,7 +103,9 @@ REMOTE_PATH="${REMOTE_PATH%/}"
TAR_EXCLUDES=()
for pat in "${EXCLUDES[@]}"; do
TAR_EXCLUDES+=(--exclude "${pat}")
# tar 의 --exclude 는 'node_modules/' 처럼 슬래시로 끝나면 디렉터리에 매칭되지 않는다.
# (rsync 문법 그대로 넘기면 node_modules 가 통째로 전송돼 메모리 부족으로 죽는다)
TAR_EXCLUDES+=(--exclude "${pat%/}")
done
ssh -o BatchMode=yes "${HOST}" "mkdir -p '${REMOTE_PATH}'"