27 lines
719 B
Bash
Executable File
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}"
|
|
|