nomadro/apps/admin/deploy/continue_verify.py
eric 3e5b7c2098 Monorepo super-optimize: src layout, workspace scripts, docs.
Collapse portal under src/, unify pnpm workspace/scripts, thin VIP topic re-exports, drop orphan vip scaffolds and one-shot scripts, ignore xhs/release, document root commands.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-01 00:34:04 +08:00

23 lines
701 B
Python

import paramiko
from pathlib import Path
c = paramiko.SSHClient()
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
c.connect("82.157.112.245", username="ubuntu", password="Xiao4669805", timeout=20)
cmd = """
systemctl is-active nomadmini-api
curl -s http://127.0.0.1:8010/health
echo
curl -s https://api.nomadro.cn/health
echo
curl -sI https://admin.nomadro.cn/ | head -8
echo ---
# ensure admin SPA uses production API
grep -R "api.nomadro.cn\|VITE_API" /www/wwwroot/admin.nomadro.cn/assets/*.js 2>/dev/null | head -c 200 || true
echo
"""
_, o, _ = c.exec_command(cmd)
Path("deploy/continue-verify.txt").write_text(o.read().decode("utf-8", "replace"), encoding="utf-8")
c.close()
print("ok")