Initial Push to CloudPanel
This commit is contained in:
@@ -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!"
|
||||
|
||||
Reference in New Issue
Block a user