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>
23 lines
725 B
Python
23 lines
725 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 = """
|
|
curl -s https://api.nomadro.cn/health
|
|
echo
|
|
curl -s https://api.nomadro.cn/api/books/default | head -c 150
|
|
echo
|
|
curl -s http://admin.nomadro.cn/ | head -c 120
|
|
echo
|
|
curl -sI http://admin.nomadro.cn/ | head -8
|
|
echo '---'
|
|
ls -la /etc/letsencrypt/live/ | grep admin || true
|
|
sudo cat /www/server/panel/vhost/nginx/admin.nomadro.cn.conf 2>/dev/null | head -30
|
|
"""
|
|
_, o, _ = c.exec_command(cmd)
|
|
Path("deploy/remote-verify2.txt").write_text(o.read().decode("utf-8", "replace"), encoding="utf-8")
|
|
c.close()
|
|
print("ok")
|