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>
21 lines
727 B
Python
21 lines
727 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 'PAYJSAPI'
|
|
systemctl cat payjsapi.service 2>/dev/null | head -20
|
|
sudo ss -ltnp | grep -E '8010|8011|8020|8030|8040|8050|8060|8070|8080|8090|8100' || true
|
|
echo 'NGINX_ALL'
|
|
sudo grep -R "server_name" /etc/nginx/ 2>/dev/null | grep -E 'nomadro|admin' || true
|
|
echo 'PAYJSAPI_PORT'
|
|
sudo ss -ltnp | grep payjs || true
|
|
sudo ss -ltnp | grep python | head -20
|
|
"""
|
|
_, o, _ = c.exec_command(cmd)
|
|
Path("deploy/remote-check4.txt").write_text(o.read().decode("utf-8", "replace"), encoding="utf-8")
|
|
c.close()
|
|
print("ok")
|