Remove: altes Next.js-Frontend gelöscht (durch HTMX+Jinja2 ersetzt)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-05 19:20:19 +02:00
parent 56b1ab9970
commit 50ac6b1a61
41 changed files with 46 additions and 13773 deletions
Executable
+45
View File
@@ -0,0 +1,45 @@
#!/bin/bash
# Deploy ZMB Webui to target system
# Usage: ./deploy.sh [target] [--pull]
# Example: ./deploy.sh 192.168.1.179
# Example: ./deploy.sh 192.168.1.179 --pull (pull from git first)
TARGET="${1:-192.168.1.179}"
PULL="${2:-}"
set -e
if [ "$PULL" == "--pull" ]; then
echo "📦 Pulling from git..."
git pull origin master
fi
echo "🔨 Building frontend..."
cd frontend
rm -rf .next out
npm run build > /dev/null 2>&1
cd ..
echo "📤 Deploying to $TARGET..."
# Deploy backend
echo " → Backend..."
rsync -avz --delete backend/ root@$TARGET:/opt/zmb-webui/backend/ \
--exclude venv --exclude __pycache__ --exclude "*.pyc" > /dev/null
# Deploy frontend
echo " → Frontend..."
rsync -avz --delete frontend/out/ root@$TARGET:/opt/zmb-webui/frontend/ > /dev/null
# Restart services
echo "🔄 Restarting services..."
ssh root@$TARGET bash << 'EOF'
systemctl restart zmb-webui-backend
sleep 1
systemctl restart nginx
sleep 1
echo "✓ Services restarted"
EOF
echo "✅ Deployment complete!"
echo " Access: https://$TARGET:8090"