From 8b916194aabb4b7f929c508c9f55cc180f5e2b20 Mon Sep 17 00:00:00 2001 From: gahusb Date: Sun, 5 Apr 2026 20:05:14 +0900 Subject: [PATCH] =?UTF-8?q?deployer:=20blog-lab=20=EC=84=9C=EB=B9=84?= =?UTF-8?q?=EC=8A=A4=20=EB=B0=B0=ED=8F=AC=20=EC=8A=A4=ED=81=AC=EB=A6=BD?= =?UTF-8?q?=ED=8A=B8=EC=97=90=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rsync 대상, docker compose up, 헬스체크에 blog-lab 포함 Co-Authored-By: Claude Opus 4.6 --- scripts/deploy-nas.sh | 2 +- scripts/deploy.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/deploy-nas.sh b/scripts/deploy-nas.sh index 595c2a9..2645adc 100644 --- a/scripts/deploy-nas.sh +++ b/scripts/deploy-nas.sh @@ -32,7 +32,7 @@ cd "$SRC" # backend, travel-proxy, deployer, nginx, scripts, docker-compose.yml, .env 등 RSYNC_EXCLUDES="--exclude .git --exclude __pycache__ --exclude *.pyc --exclude data/" -for dir in backend travel-proxy deployer stock-lab music-lab nginx scripts; do +for dir in backend travel-proxy deployer stock-lab music-lab blog-lab nginx scripts; do rsync -a --delete $RSYNC_EXCLUDES \ "$SRC/$dir/" "$DST/$dir/" done diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 90c0620..c168202 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -52,7 +52,7 @@ bash "$SRC/scripts/deploy-nas.sh" # ── 변경된 서비스만 재빌드 (deployer 제외 — 자기 자신을 재빌드하면 스크립트 중단됨) ── cd "$DST" -docker compose up -d --build backend travel-proxy stock-lab music-lab frontend +docker compose up -d --build backend travel-proxy stock-lab music-lab blog-lab frontend docker exec lotto-frontend nginx -s reload 2>/dev/null || true # ── 배포 후 헬스체크 ── @@ -61,7 +61,7 @@ sleep 5 HEALTH_OK=true # 컨테이너 내부에서는 서비스명 + 내부포트(8000)로 접근 -for endpoint in "http://backend:8000/health" "http://stock-lab:8000/health" "http://travel-proxy:8000/health" "http://music-lab:8000/health"; do +for endpoint in "http://backend:8000/health" "http://stock-lab:8000/health" "http://travel-proxy:8000/health" "http://music-lab:8000/health" "http://blog-lab:8000/health"; do if ! curl -sf --max-time 10 --retry 2 --retry-delay 3 "$endpoint" > /dev/null 2>&1; then echo "HEALTH_FAIL: $endpoint" HEALTH_OK=false