feat: arastirma modulleri odeme ve operasyonlari tamamla
This commit is contained in:
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
app_url="${NEXT_PUBLIC_APP_URL:?NEXT_PUBLIC_APP_URL is required}"
|
||||
if curl --fail --silent --show-error --max-time 10 "${app_url%/}/api/health" >/dev/null; then
|
||||
echo "WinningHunter healthcheck OK"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ -n "${ALERT_WEBHOOK_URL:-}" ]; then
|
||||
curl --fail --silent --show-error --max-time 10 -X POST -H 'content-type: application/json' --data '{"text":"WinningHunter healthcheck failed"}' "$ALERT_WEBHOOK_URL" >/dev/null || true
|
||||
fi
|
||||
echo "WinningHunter healthcheck FAILED" >&2
|
||||
exit 1
|
||||
Reference in New Issue
Block a user