desktop download 수정

This commit is contained in:
Macbook
2026-06-14 10:41:05 +09:00
parent eb9e6ec4e9
commit 7654ec99dc
10 changed files with 168 additions and 11 deletions
+26
View File
@@ -0,0 +1,26 @@
#!/usr/bin/env bash
# desktop/updates static 반영 — nginx reload (볼륨 마운트 시 재빌드 불필요)
set -euo pipefail
WORK_TREE="${WORK_TREE:-/Users/aidev/apps/goldenChart}"
COMPOSE="${DOCKER_COMPOSE_FILE:-$WORK_TREE/docker-compose.yml}"
CONTAINER="${FRONTEND_CONTAINER:-gc-frontend}"
if [[ ! -f "$COMPOSE" ]]; then
echo "[reload-desktop-static] skip — no compose: $COMPOSE"
exit 0
fi
if docker ps --format '{{.Names}}' | grep -qx "$CONTAINER"; then
docker exec "$CONTAINER" nginx -s reload 2>/dev/null \
&& echo "[reload-desktop-static] nginx reload OK ($CONTAINER)" \
&& exit 0
fi
if docker compose -f "$COMPOSE" ps frontend 2>/dev/null | grep -q Up; then
docker compose -f "$COMPOSE" exec -T frontend nginx -s reload \
&& echo "[reload-desktop-static] nginx reload OK (compose)" \
&& exit 0
fi
echo "[reload-desktop-static] frontend container not running — skip"