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

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