From 9d33cb538fc368da7e9153bf1a4b26dea64927a7 Mon Sep 17 00:00:00 2001 From: leehk Date: Mon, 14 Apr 2025 13:43:49 +0800 Subject: [PATCH] update --- .github/workflows/develop.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index 17dce1b..daa4c50 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -126,7 +126,14 @@ jobs: - name: Monitor memory usage run: free -h - name: Test port accessibility - run: curl -v http://localhost:8004 + run: | + # Attempt to connect to the service on localhost:8004 + echo "Testing port accessibility on localhost:8004..." + curl -v http://localhost:8004 || { + echo "Port 8004 is not accessible!" + exit 1 + } + echo "Port 8004 is accessible." - name: Get container logs if: failure() run: docker logs backend-backend