mirror of
https://github.com/complexcaresolutions/cms.c2sgmbh.git
synced 2026-03-17 17:24:12 +00:00
fix(ci): use valid API endpoint for post-deployment health check
/api returns 404 in Payload CMS (no root handler). Use /api/users which returns 401 (valid response, proves API is running). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d94db78aec
commit
16f7a203bc
1 changed files with 2 additions and 2 deletions
4
.github/workflows/deploy-production.yml
vendored
4
.github/workflows/deploy-production.yml
vendored
|
|
@ -377,8 +377,8 @@ jobs:
|
||||||
ADMIN_STATUS=$(curl -s -o /dev/null -w "%{http_code}" "${{ env.PRODUCTION_URL }}/admin")
|
ADMIN_STATUS=$(curl -s -o /dev/null -w "%{http_code}" "${{ env.PRODUCTION_URL }}/admin")
|
||||||
echo "Admin Panel: HTTP $ADMIN_STATUS"
|
echo "Admin Panel: HTTP $ADMIN_STATUS"
|
||||||
|
|
||||||
# Check API
|
# Check API (Payload serves /api/users as a valid endpoint)
|
||||||
API_STATUS=$(curl -s -o /dev/null -w "%{http_code}" "${{ env.PRODUCTION_URL }}/api")
|
API_STATUS=$(curl -s -o /dev/null -w "%{http_code}" "${{ env.PRODUCTION_URL }}/api/users")
|
||||||
echo "API: HTTP $API_STATUS"
|
echo "API: HTTP $API_STATUS"
|
||||||
|
|
||||||
# Summary
|
# Summary
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue