This repository has been archived on 2025-08-19. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
coinstorge/build.sh

31 lines
670 B
Bash
Raw Normal View History

2025-05-30 12:24:21 +03:00
#!/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