quick production test script

This commit is contained in:
Face 2025-05-30 12:24:21 +03:00
parent 735ca3d8c6
commit 1e44c7db7a
7 changed files with 562 additions and 2 deletions

31
build.sh Normal file
View file

@ -0,0 +1,31 @@
#!/bin/bash
set -e
cd "$(dirname "$0")"
echo "🚀 Starting Rugplay deployment..."
echo "📥 Pulling latest changes..."
git pull
echo "🔨 Building Docker images..."
docker compose build --no-cache
echo "🛑 Stopping existing containers..."
docker compose down --volumes --remove-orphans
echo "🏗️ Starting containers..."
docker compose up -d
echo "⏳ Waiting for services to start..."
sleep 10
echo "🔍 Checking container status..."
docker compose ps
echo "📊 Checking service health..."
echo "Main app: http://localhost:3002"
echo "WebSocket: http://localhost:8081/health"
echo "📋 Tailing logs (press Ctrl+C to stop)..."
docker compose logs -f