import paramiko, sys sys.stdout.reconfigure(encoding='utf-8', errors='replace') c = paramiko.SSHClient(); c.set_missing_host_key_policy(paramiko.AutoAddPolicy()) c.connect('101.79.17.164', username='root', password='1q2w3e!Q', timeout=15) def run(label, cmd, timeout=15): _, o, _ = c.exec_command(cmd, timeout=timeout) print(f'\n[{label}]\n' + o.read().decode('utf-8','replace').strip()[:1000]) # 현재 Company.jsx (stash에서 복원된 468줄) vs git HEAD의 Company.jsx run('현재 vs HEAD diff (추가된 부분)', 'git -C /opt/zioinfo/src diff HEAD -- frontend/src/pages/Company.jsx 2>/dev/null | ' "grep '^+' | grep -v '^+++' | head -50") # index.html이 참조하는 JS 파일 run('index.html 스크립트 태그', "grep -o 'src=\"/assets/[^\"]*\"\\|href=\"/assets/[^\"]*\"' /var/www/zioinfo/index.html | head -10") # 브라우저에서 실제로 보이는 것: curl로 홈페이지 확인 run('실제 서빙 확인 (200 OK)', 'curl -sf -o /dev/null -w "%{http_code}" https://zioinfo.co.kr/company/greeting 2>/dev/null || ' 'curl -sf -o /dev/null -w "%{http_code}" http://localhost:8082/company/greeting 2>/dev/null') c.close()