fix: implement smart docker compose vs legacy docker-compose command fallback for VPS

This commit is contained in:
MythEclipse
2026-05-17 22:08:03 +07:00
parent 88a02f2a66
commit 079c6c3399
2 changed files with 11 additions and 2 deletions
+5 -1
View File
@@ -39,7 +39,11 @@ fi
echo "🔄 Rebuilding and restarting Docker containers..."
$SSH_CMD << EOF
cd $REMOTE_DIR
docker-compose up -d --build
if command -v docker-compose &> /dev/null; then
docker-compose up -d --build
else
docker compose up -d --build
fi
EOF
echo "✅ Deployment complete!"