Skip to content

Commit

Permalink
Improved health check (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashfire908 authored Sep 18, 2024
1 parent f3425ae commit 66695d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion healthcheck.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
set -o pipefail

curl -k -f -X POST "https://127.0.0.1:${SERVERGAMEPORT}/api/v1" \
curl -k -f -s -S -X POST "https://127.0.0.1:${SERVERGAMEPORT}/api/v1" \
-H "Content-Type: application/json" \
-d '{"function":"HealthCheck","data":{"clientCustomData":""}}' \
| jq -e '.data.health == "healthy"'

0 comments on commit 66695d0

Please sign in to comment.