From bdf0fba4688995691e162b2780407be5902d5729 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 9 May 2026 21:49:49 +0000 Subject: [PATCH] fix(deployment): correct repo paths for deployment scripts when run from devops-tools directory --- deploy-all.sh | 5 +++-- deploy-invttrdg.sh | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/deploy-all.sh b/deploy-all.sh index 7d3eaf1..05604e8 100755 --- a/deploy-all.sh +++ b/deploy-all.sh @@ -26,6 +26,7 @@ fail() { echo -e "${RED}[$(date +%H:%M:%S)] ✗${NC} $*"; exit 1; } # ── Configuration ──────────────────────────────────────────────────── SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" +REPOS_BASE_DIR="${SCRIPT_DIR}/.." cd "$SCRIPT_DIR" PRODUCTION_REPOS=( @@ -70,7 +71,7 @@ fi # ── Deploy Function ─────────────────────────────────────────────────── deploy_repo() { local repo="$1" - local repo_dir="${SCRIPT_DIR}/${repo}" + local repo_dir="${REPOS_BASE_DIR}/${repo}" log "══════════════════════════════════════════════════════════════════════" log "Deploying: $repo" @@ -133,7 +134,7 @@ deploy_repo() { warn "No docker-compose.yml found in $repo, skipping Docker deployment" fi - cd "$SCRIPT_DIR" + cd "$REPOS_BASE_DIR" } # ── Deploy All Repos ─────────────────────────────────────────────────── diff --git a/deploy-invttrdg.sh b/deploy-invttrdg.sh index 5f7ff91..7c7c778 100755 --- a/deploy-invttrdg.sh +++ b/deploy-invttrdg.sh @@ -26,7 +26,7 @@ fail() { echo -e "${RED}[$(date +%H:%M:%S)] ✗${NC} $*"; exit 1; } # ── Configuration ──────────────────────────────────────────────────── SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" -REPO_DIR="${SCRIPT_DIR}/learning_ai_invt_trdg" +REPO_DIR="${SCRIPT_DIR}/../learning_ai_invt_trdg" cd "$SCRIPT_DIR" FORCE=false