From eafa8d362f6cac5c3843302b155033b8cefa7062 Mon Sep 17 00:00:00 2001 From: eko Date: Sun, 5 Apr 2026 00:39:10 +0700 Subject: [PATCH] fix vald --- .gitea/workflows/pipeline.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/pipeline.yml b/.gitea/workflows/pipeline.yml index 06296b4f..425ca691 100644 --- a/.gitea/workflows/pipeline.yml +++ b/.gitea/workflows/pipeline.yml @@ -84,7 +84,7 @@ jobs: echo "Starting new container..." docker run -d \ --restart unless-stopped \ - --health-cmd="curl -f http://localhost:8000 || exit 1" \ + --health-cmd="curl -f http://127.0.0.1:8000 || exit 1" \ --health-interval=30s \ --health-timeout=10s \ --health-retries=3 \ @@ -204,7 +204,7 @@ jobs: echo "Starting new production container on port 8000..." docker run -d \ --restart unless-stopped \ - --health-cmd="curl -f http://localhost:8000 || exit 1" \ + --health-cmd="curl -f http://127.0.0.1:8000 || exit 1" \ --health-interval=30s \ --health-timeout=10s \ --health-start-period=40s \ @@ -235,7 +235,7 @@ jobs: # Test the application locally echo "" echo "Testing application locally..." - curl -f http://localhost:8000 > /dev/null 2>&1 && echo "✅ Application is responding on port 8000" || echo "⚠️ Application not responding on port 8000" + curl -f http://127.0.0.1:8000 > /dev/null 2>&1 && echo "✅ Application is responding on port 8000" || echo "⚠️ Application not responding on port 8000" else echo "❌ Production deployment failed! Checking logs:" docker logs kulakpos_web_prod || echo "No logs available" @@ -250,7 +250,7 @@ jobs: echo "Rolling back to: $PREVIOUS_IMAGE" docker run -d \ --restart unless-stopped \ - --health-cmd="curl -f http://localhost:8000 || exit 1" \ + --health-cmd="curl -f http://127.0.0.1:8000 || exit 1" \ --health-interval=30s \ --health-timeout=10s \ --health-start-period=40s \ @@ -295,7 +295,7 @@ jobs: # Test application response (with timeout and retry) echo "Testing application response..." for i in 1 2 3 4 5; do - if curl -f -s -o /dev/null -w "%{http_code}" http://localhost:8000 | grep "200\|302"; then + if curl -f -s -o /dev/null -w "%{http_code}" http://127.0.0.1:8000 | grep "200\|302"; then echo "✅ Application is responding" break elif [ $i -eq 5 ]; then