chore: checkpoint admin restore state

This commit is contained in:
john
2026-06-30 20:26:33 +08:00
parent f2172322fd
commit f9a7584ad4
63 changed files with 7555 additions and 1030 deletions
+27
View File
@@ -0,0 +1,27 @@
#!/usr/bin/env bash
set -euo pipefail
HOST="${STUDIO_HOST:-john@10.10.0.2}"
APP_DIR="${STUDIO_APP_DIR:-/Users/john/Project/memind_adm}"
ssh -o BatchMode=yes "${HOST}" "
set -e
echo '== host =='
hostname
echo
echo '== app dir =='
echo '${APP_DIR}'
echo
echo '== git =='
cd '${APP_DIR}'
git rev-parse HEAD 2>/dev/null || echo 'no-git'
git status --short --branch 2>/dev/null | sed -n '1,120p' || true
echo
echo '== env target =='
sed -n '1,120p' .env 2>/dev/null | grep -E '^(DATABASE_URL|MYSQL_|MEMIND_LIB_ROOT|H5_USERS_ROOT|PLAN_SYNC_)' || true
echo
echo '== health =='
curl -s http://127.0.0.1:8085/health || true
echo
curl -sI http://127.0.0.1:5174/ | head -1 || true
"