deploy gastro

This commit is contained in:
Nico Haider
2026-04-26 21:51:29 +02:00
parent 234c8d0e18
commit 5eca1aa0c0
3 changed files with 82 additions and 1 deletions
+32
View File
@@ -0,0 +1,32 @@
#!/bin/bash
set -e
echo "🚀 Starte Deployment für Projektverwaltung..."
cd ~/docker-setup/projektverwaltung
echo "📥 Pull latest changes for backend..."
cd backend
git pull origin main
echo "📥 Pull latest changes for frontend..."
cd ../frontend
git pull origin main
cd ..
echo "🛑 Stoppe alte Container..."
docker compose down
echo "📦 Baue Images neu..."
docker compose build
echo "⬆️ Starte Container..."
docker compose up -d
echo "🧹 Bereinige alte Images..."
docker image prune -f
echo "✅ Deployment abgeschlossen!"
docker compose ps