Files
yourpart3/update.sh
2025-11-20 15:52:04 +01:00

37 lines
873 B
Bash
Executable File

#!/bin/bash
echo "=== YourPart Update Script ==="
echo "Dieses Script aktualisiert die Anwendung OHNE .env-Dateien zu überschreiben"
echo ""
# Prüfen ob wir im richtigen Verzeichnis sind
if [ ! -f "package.json" ]; then
echo "Error: Please run this script from the YourPart3 root directory"
exit 1
fi
# Prüfen ob sudo verfügbar ist
if ! command -v sudo &> /dev/null; then
echo "Error: sudo is required but not installed"
exit 1
fi
# Backend updaten
echo ""
echo "=== Updating Backend ==="
./update-backend.sh
# Frontend bauen und updaten
echo ""
echo "=== Building and Updating Frontend ==="
./update-frontend.sh
echo ""
echo "=== Update Completed! ==="
echo "Your application has been updated."
echo ""
echo "To check logs:"
echo " Backend: sudo journalctl -u yourpart.service -f"
echo " Apache: sudo tail -f /var/log/apache2/yourpart.*.log"