This commit is contained in:
leehk 2025-04-14 13:43:49 +08:00
parent 131fe23571
commit 9d33cb538f

View File

@ -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