Files
soul/check_deployment.sh
v0 f3195d9331 refactor: overhaul homepage and app structure
Simplify homepage, show chapter counts, display directory, trim bottom nav, in-page match feature, move marketing content, and enhance "My" page.

#VERCEL_SKIP

Co-authored-by: undefined <undefined+undefined@users.noreply.github.com>
2026-01-14 05:10:32 +00:00

26 lines
693 B
Bash

#!/bin/bash
# 快速检查部署状态
NAS_USER="fnvtk"
NAS_IP="192.168.2.201"
NAS_PASSWORD="Zhiqun1984"
SUDO_PASSWORD="Zhiqun1984"
DOCKER_CMD="/volume1/@appstore/ContainerManager/usr/bin/docker"
PROJECT_DIR="/volume1/docker/soul-book"
expect << EOF
set timeout 30
spawn ssh -t -o KexAlgorithms=+diffie-hellman-group1-sha1 -o Ciphers=+aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc $NAS_USER@$NAS_IP "sudo $DOCKER_CMD ps -a | grep soul; echo '---'; curl -s http://localhost:3000 | head -20 || echo '服务未响应'"
expect {
"password:" {
send "$NAS_PASSWORD\r"
exp_continue
}
"Password:" {
send "$SUDO_PASSWORD\r"
exp_continue
}
}
expect eof
EOF