fix(deployer): rsync 타임스탬프 보존 제거 + non-critical 에러 허용
-t 플래그 제거 (Operation not permitted 방지), exit code 23 허용. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -30,14 +30,14 @@ cd "$SRC"
|
||||
|
||||
# 레포에서 운영으로 반영할 항목들만 복사/동기화 (필요한 것만 적기)
|
||||
# backend, travel-proxy, deployer, nginx, scripts, docker-compose.yml, .env 등
|
||||
RSYNC_OPTS="-rlpt --delete --no-owner --no-group --exclude .git --exclude __pycache__ --exclude *.pyc --exclude data/"
|
||||
RSYNC_OPTS="-rl --delete --no-owner --no-group --exclude .git --exclude __pycache__ --exclude *.pyc --exclude data/"
|
||||
|
||||
for dir in backend travel-proxy deployer stock-lab music-lab blog-lab realestate-lab nginx scripts; do
|
||||
rsync $RSYNC_OPTS "$SRC/$dir/" "$DST/$dir/"
|
||||
rsync $RSYNC_OPTS "$SRC/$dir/" "$DST/$dir/" || [ $? -eq 23 ] && true
|
||||
done
|
||||
|
||||
# compose 파일만 동기화 (.env는 절대 동기화하지 않음 — 운영 시크릿 보호)
|
||||
rsync -lpt --no-owner --no-group "$SRC/docker-compose.yml" "$DST/docker-compose.yml"
|
||||
rsync -rl --no-owner --no-group "$SRC/docker-compose.yml" "$DST/docker-compose.yml" || [ $? -eq 23 ] && true
|
||||
|
||||
# 파일 권한 설정 — bgg8988:users 755
|
||||
DEPLOY_USER="bgg8988"
|
||||
|
||||
Reference in New Issue
Block a user