xiaso-flnxi-website/check-deployment.sh
Your Name b1eab32c75 初始提交: FLNXI电商素材系统官方网站
- Next.js 项目框架
- 完整的认证系统集成
- 数据库配置和部署脚本
- 产品价格体系和文档
- Docker 部署配置
2025-12-13 21:38:32 +08:00

27 lines
719 B
Bash
Executable File

#!/bin/bash
# Check deployment status
SERVER_IP="45.249.208.118"
PORT="4782"
echo "🔍 Checking deployment status..."
echo ""
# Check if container is running
echo "📦 Checking Docker container..."
sshpass -p "lxvhNYFZ4160" ssh root@${SERVER_IP} "cd /opt/flnxi-website && docker-compose ps"
echo ""
# Check container logs
echo "📝 Recent logs:"
sshpass -p "lxvhNYFZ4160" ssh root@${SERVER_IP} "cd /opt/flnxi-website && docker-compose logs --tail 20"
echo ""
# Test website access
echo "🌐 Testing website access..."
curl -s -o /dev/null -w "HTTP Status: %{http_code}\n" http://${SERVER_IP}:${PORT} || echo "Website not accessible yet"
echo ""
echo "✅ Access your website at: http://${SERVER_IP}:${PORT}"