Deploy: exdev sync 2026-08-13 14:48:13
This commit is contained in:
+3
-1
@@ -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}'"
|
||||
|
||||
Reference in New Issue
Block a user