mirror of
git://f0xx.org/ac/ac-deploy
synced 2026-07-29 04:38:48 +03:00
cluster0: composed ac backend, /issues/ nginx, postgres semi-prod
Compose lab PHP from ac-workspace overlay; 301 /crashes/ → /issues/; verify on issues path; optional native Postgres on cast01. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -46,6 +46,12 @@ check_local_node() {
|
||||
DIAG="$(curl -sS "http://127.0.0.1${APP_BASE_PATH}/api/diag.php" 2>/dev/null || true)"
|
||||
echo "$DIAG" | grep -q '"ok":true' || { log "FAIL diag.php"; FAIL=1; }
|
||||
|
||||
LEGACY_REDIRECT="$(curl -sS -o /dev/null -w '%{http_code}' "http://127.0.0.1${APP_LEGACY_BASE_PATH:-/app/androidcast_project/crashes}/" 2>/dev/null || echo 000)"
|
||||
case "$LEGACY_REDIRECT" in
|
||||
301|308) log "legacy_redirect=${LEGACY_REDIRECT}" ;;
|
||||
*) log "WARN legacy_redirect=${LEGACY_REDIRECT} (want 301 from ${APP_LEGACY_BASE_PATH}/)" ;;
|
||||
esac
|
||||
|
||||
if [ -x "$ROOT/scripts/validate-ac-repos.sh" ]; then
|
||||
sh "$ROOT/scripts/validate-ac-repos.sh" || FAIL=1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user