From 0352ffd6413f4f40361cc4d70fcd76a91cab91c1 Mon Sep 17 00:00:00 2001 From: Gato Date: Mon, 8 Jun 2026 08:40:45 +0200 Subject: [PATCH] =?UTF-8?q?fix(olhar):=20deploy.sh=20utilise=20le=20compos?= =?UTF-8?q?e=20du=20repo=20clon=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- olhar/deploy.sh | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/olhar/deploy.sh b/olhar/deploy.sh index d9cc4f1..3237e1c 100755 --- a/olhar/deploy.sh +++ b/olhar/deploy.sh @@ -15,19 +15,11 @@ else git clone --branch develop --depth 1 "${REPO_URL}" "${BUILD_DIR}" fi -# ── 2. Build des images ─────────────────────────────────────────────────────── -echo "▶ Build de l'image API..." -docker build \ - -t git.goutailler-olivier.com/gato/olhar-api:latest \ - "${BUILD_DIR}/backend" - -echo "▶ Build de l'image PWA..." -docker build \ - -t git.goutailler-olivier.com/gato/olhar-pwa:latest \ - "${BUILD_DIR}/webapp" - -# ── 3. Démarrage du stack ───────────────────────────────────────────────────── -echo "▶ Démarrage du stack..." -docker compose -f "${SCRIPT_DIR}/docker-compose.yml" up -d +# ── 2. Build & démarrage du stack ──────────────────────────────────────────── +echo "▶ Build des images et démarrage du stack..." +docker compose \ + -f "${BUILD_DIR}/docker-compose.yml" \ + --env-file "${SCRIPT_DIR}/.env" \ + up --build -d echo "✓ Stack démarré."