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
804 B
Python
23 lines
804 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 = """
|
|
echo 'PORT8000'
|
|
sudo ss -ltnp | grep ':8000' || true
|
|
echo 'PROCESSES'
|
|
ps aux | grep -E 'uvicorn|gunicorn|8000' | grep -v grep || true
|
|
echo 'NGINX'
|
|
ls -la /etc/nginx/sites-enabled/ || true
|
|
ls -la /etc/nginx/conf.d/ || true
|
|
grep -R "server_name" /etc/nginx/sites-enabled /etc/nginx/conf.d 2>/dev/null | head -30 || true
|
|
echo 'SYSTEMD8000'
|
|
systemctl list-units --type=service --all | grep -iE 'nomad|api|uvicorn|fastapi|pocket' || true
|
|
"""
|
|
_, o, _ = c.exec_command(cmd)
|
|
Path("deploy/remote-check3.txt").write_text(o.read().decode("utf-8", "replace"), encoding="utf-8")
|
|
c.close()
|
|
print("ok")
|