From 5ffa60ef655f422711119ae3aaa268f386f153c3 Mon Sep 17 00:00:00 2001 From: Gabriel Radureau Date: Wed, 8 Apr 2026 00:15:57 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20use=20correct=20DLC=5FDAT?= =?UTF-8?q?ABASE=5FHOST=20for=20Docker=20vs=20native=20execution?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Use localhost for native execution (PostgreSQL port mapping) - Use dance-lessons-coach-postgres for Docker container execution - Set appropriate environment variables for each execution mode - Fix container-to-container communication Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- scripts/test-local-ci-cd.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/test-local-ci-cd.sh b/scripts/test-local-ci-cd.sh index 2953d8d..ca1e536 100755 --- a/scripts/test-local-ci-cd.sh +++ b/scripts/test-local-ci-cd.sh @@ -69,9 +69,7 @@ for i in {1..30}; do done # Set PostgreSQL environment variables for BDD tests -# Use localhost since PostgreSQL port is mapped to host -# Container name is only used when running INSIDE Docker containers -export DLC_DATABASE_HOST="localhost" +export DLC_DATABASE_HOST="localhost" # PostgreSQL port is mapped to host export DLC_DATABASE_PORT=5432 export DLC_DATABASE_USER=postgres export DLC_DATABASE_PASSWORD=postgres @@ -132,7 +130,7 @@ if [ "$USE_DOCKER_CACHE" = true ]; then --network dance-lessons-coach-network \ -v "$(pwd):/workspace" \ -w /workspace \ - -e DLC_DATABASE_HOST=localhost \ + -e DLC_DATABASE_HOST=dance-lessons-coach-postgres \ -e DLC_DATABASE_PORT=5432 \ -e DLC_DATABASE_USER=postgres \ -e DLC_DATABASE_PASSWORD=postgres \