AkurAI Build
Menu

Public repository / 17ecb7d0341c5db2f4b548f08a16f8a1f3d26e4e

AkurAI-Platform / scripts/check-live.sh

Latest change 70115550b3ea633293c46692ec00ec88a23503cb - AKURAI-PLATFORM-6 verify generated theme assets by Ólafur Búi Ólafsson

#!/usr/bin/env bash
set -euo pipefail

DOMAIN="${AKURAI_PLATFORM_DOMAIN:-platform.olibuijr.com}"
IP="${AKURAI_PLATFORM_IP:-3.94.46.219}"

echo "== DNS =="
dig +short "$DOMAIN" A

echo "== public HTTP =="
curl -fsSI --max-time 10 "http://$DOMAIN/" | sed -n '1,8p'
echo "== generated theme assets =="
curl -fsS --max-time 10 "http://$DOMAIN/themes.css" | python3 -c 'import sys; assert "--bg" in sys.stdin.read(), "theme CSS missing --bg"'
curl -fsS --max-time 10 "http://$DOMAIN/themes.json" | python3 -c 'import json, sys; themes = json.load(sys.stdin); assert isinstance(themes, list) and themes, "empty theme registry"'

echo "== direct edge =="
curl -fsSI --max-time 10 -H "Host: $DOMAIN" "http://$IP/" | sed -n '1,8p'

echo "== VM upstream =="
akurai-ec2 ssh 'set -e
systemctl is-active akurai-platform.service
curl -fsS http://127.0.0.1:8098/api/health
'