douyinWEB/scripts/_check_server_state.py
eric d409e416da Ship physical dual-edge stack, Studio CDP live metrics, and ops tooling.
Capture Neko/WG/network hubs, Studio viewer charts, physical deploy docs, and one-shot scripts so VPS vs physical can be toggled later without losing WIP.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-04 22:42:40 -05:00

16 lines
543 B
Python

import paramiko
HOST = "107.173.30.245"; USER = "root"; PASSWORD = "Xiao4669805"
c = paramiko.SSHClient(); c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
c.connect(HOST, 22, USER, PASSWORD, timeout=30, allow_agent=False, look_for_keys=False)
for cmd in [
"systemctl is-active douyinweb-api douyinweb-web",
"cd /opt/douyinWEB && git log --oneline -3",
"cd /opt/douyinWEB && git branch --show-current",
]:
_s, out, _ = c.exec_command(cmd, timeout=20)
print(out.read().decode("utf-8","replace").strip())
c.close()