diff --git a/scripts/deploy/deploy-node.sh b/scripts/deploy/deploy-node.sh index 1b6849c..69df10c 100755 --- a/scripts/deploy/deploy-node.sh +++ b/scripts/deploy/deploy-node.sh @@ -82,6 +82,19 @@ fi # 3. Deploy Services for service in "${SERVICES[@]}"; do + # Services that ship their own deploy-local.sh have a dedicated, orchestrated + # deploy path (e.g. control-plane via deploy-control-plane.sh → deploy-local.sh). + # Deploying them in this loop too would invoke `docker compose up` with a + # different Compose project name than their dedicated path uses (this loop runs + # from ${REPO_PATH}; deploy-local.sh runs from services//), so `up + # -d --remove-orphans` would Recreate and tear down the already-running + # containers — exactly what wiped the control-plane on VPS on 2026-06-25. + # Their own deploy path owns them; skip here. + if [ -f "${REPO_PATH}/services/${service}/deploy-local.sh" ]; then + echo "Skipping ${service}: ma własną ścieżkę deployu (services/${service}/deploy-local.sh), pomijam" + continue + fi + echo "Deploying service: ${service}..." COMPOSE_FILE="${REPO_PATH}/services/${service}/docker-compose.yml"