Initial Push to CloudPanel

This commit is contained in:
Hamza-Ayed
2026-04-16 23:47:47 +03:00
parent d66891ba0f
commit aa76f1cbdf
2 changed files with 6 additions and 6 deletions

View File

@@ -17,7 +17,7 @@ services:
container_name: musadaq-frontend container_name: musadaq-frontend
restart: unless-stopped restart: unless-stopped
ports: ports:
- "80:80" - "9090:80"
depends_on: depends_on:
- api - api
networks: networks:

View File

@@ -22,20 +22,20 @@ git push origin main
# ── 2. Deploy to Production ───────────────────────────────── # ── 2. Deploy to Production ─────────────────────────────────
# Update the variables below with your VPS credentials # Update the variables below with your VPS credentials
SERVER_USER="root" SERVER_USER="root"
SERVER_IP="intaleqapp.com" # Or your Contabo IP SERVER_IP="194.163.173.157" # Contabo VPS
PROJECT_DIR="/var/www/musadeq" PROJECT_DIR="/home/intaleqapp-musadeq/htdocs"
echo "🌐 Synchronizing with production server ($SERVER_IP)..." echo "🌐 Synchronizing with production server ($SERVER_IP)..."
ssh $SERVER_USER@$SERVER_IP << EOF ssh $SERVER_USER@$SERVER_IP << EOF
cd $PROJECT_DIR cd $PROJECT_DIR
echo "⬇️ Pulling latest changes..." echo "⬇️ Pulling latest changes from Git..."
git pull origin main git pull origin main
echo "🏗️ Rebuilding production containers..." echo "🏗️ Rebuilding production containers (Docker Compose)..."
docker compose up -d --build docker compose up -d --build
echo "✅ Deployment successful!" echo "✅ Deployment successful at $(date)!"
EOF EOF
echo "✨ Sync completed successfully!" echo "✨ Sync completed successfully!"