Pay-then-profile join desk with live card, S3 upload fallback, hydration-safe drafts; document on test9 README. Co-authored-by: Cursor <cursoragent@cursor.com>
32 lines
1.3 KiB
Python
32 lines
1.3 KiB
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
import sys
|
|
import paramiko
|
|
|
|
sys.stdout.reconfigure(encoding="utf-8", errors="replace", line_buffering=True)
|
|
|
|
CMD = r"""
|
|
set +e
|
|
echo '=== via nginx localhost https ==='
|
|
curl -sk -m 12 -H 'Host: nomadro.com' "https://127.0.0.1/api/work/v1/boards?ts=$(date +%s)" | head -c 300; echo
|
|
curl -sk -m 12 -o /dev/null -w 'nginx_local=%{http_code}\n' -H 'Host: nomadro.com' "https://127.0.0.1/api/work/v1/boards?ts=$(date +%s)"
|
|
echo '=== public cachebust ==='
|
|
curl -sS -m 12 -o /dev/null -w 'com=%{http_code}\n' "https://nomadro.com/api/work/v1/boards?nocache=$(date +%s%N)"
|
|
curl -sS -m 12 "https://nomadro.com/api/work/v1/boards?nocache=$(date +%s%N)" | head -c 300; echo
|
|
echo '=== next direct ==='
|
|
curl -sS -m 8 -o /dev/null -w 'next=%{http_code}\n' "http://127.0.0.1:4003/api/work/v1/boards?x=1"
|
|
echo '=== ss next ==='
|
|
ss -lntp | grep -E ':(4003|443)\b'
|
|
ps aux | grep -E 'next-server|pnpm start' | grep -v grep
|
|
"""
|
|
|
|
c = paramiko.SSHClient()
|
|
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
|
c.connect("108.174.50.68", 22, "root", "Xiao4669805", timeout=40, allow_agent=False, look_for_keys=False)
|
|
_, o, e = c.exec_command(CMD, timeout=60)
|
|
print(o.read().decode())
|
|
err = e.read().decode()
|
|
if err.strip():
|
|
print("STDERR", err[-1000:])
|
|
c.close()
|