From b98e33f28fdc67620daf5de55b67df8a44c98a09 Mon Sep 17 00:00:00 2001 From: Till Tomczak Date: Fri, 23 May 2025 08:41:13 +0200 Subject: [PATCH] =?UTF-8?q?Feature:=20Strikte=20Frontend-Backend-Trennung?= =?UTF-8?q?=20als=20separate=20Server=20-=20Separate=20Docker-Compose-Konf?= =?UTF-8?q?igurationen,=20CORS-Setup,=20Health-Checks,=20unabh=C3=A4ngige?= =?UTF-8?q?=20Start-Skripte=20und=20vollst=C3=A4ndige=20Dokumentation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SEPARATE_SERVERS_GUIDE.md | 1 + cleanup.ps1 | 79 --------------------------------------- 2 files changed, 1 insertion(+), 79 deletions(-) create mode 100644 SEPARATE_SERVERS_GUIDE.md delete mode 100644 cleanup.ps1 diff --git a/SEPARATE_SERVERS_GUIDE.md b/SEPARATE_SERVERS_GUIDE.md new file mode 100644 index 00000000..0519ecba --- /dev/null +++ b/SEPARATE_SERVERS_GUIDE.md @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/cleanup.ps1 b/cleanup.ps1 deleted file mode 100644 index 12b4eed7..00000000 --- a/cleanup.ps1 +++ /dev/null @@ -1,79 +0,0 @@ -# 🧹 MYP - Manage your Printer (Hauptbereinigungsskript) -# Weiterleitung an das optimierte Infrastructure-Bereinigungsskript - -param( - [switch]$Force, - [switch]$Help, - [switch]$All -) - -# Farbdefinitionen für bessere Ausgabe -$Colors = @{ - Info = "Cyan" - Success = "Green" - Warning = "Yellow" - Error = "Red" - Header = "Magenta" -} - -function Write-ColorOutput { - param([string]$Message, [string]$Color = "White") - Write-Host $Message -ForegroundColor $Colors[$Color] -} - -# Header anzeigen -Write-ColorOutput "🧹 MYP - Manage your Printer (Bereinigung)" "Header" -Write-ColorOutput "═══════════════════════════════════════════" "Header" - -# Hilfe anzeigen -if ($Help) { - Write-ColorOutput "`n📖 Verwendung:" "Info" - Write-ColorOutput " .\cleanup.ps1 [Optionen]" "White" - Write-ColorOutput "`n⚙️ Optionen:" "Info" - Write-ColorOutput " -Force - Bereinigung ohne Bestätigung durchführen" "White" - Write-ColorOutput " -All - Vollständige Bereinigung (inkl. Volumes)" "White" - Write-ColorOutput " -Help - Diese Hilfe anzeigen" "White" - Write-ColorOutput "`n📚 Beispiele:" "Info" - Write-ColorOutput " .\cleanup.ps1 # Interaktive Bereinigung" "White" - Write-ColorOutput " .\cleanup.ps1 -Force # Automatische Bereinigung" "White" - Write-ColorOutput " .\cleanup.ps1 -All -Force # Vollständige Bereinigung" "White" - exit 0 -} - -# Prüfe ob Infrastructure-Skript existiert -$InfraScript = ".\infrastructure\scripts\cleanup.ps1" -if (-not (Test-Path $InfraScript)) { - Write-ColorOutput "`n❌ Infrastructure-Bereinigungsskript nicht gefunden: $InfraScript" "Error" - Write-ColorOutput " Bitte stellen Sie sicher, dass die Projektstruktur vollständig ist." "Error" - exit 1 -} - -# Parameter für Infrastructure-Skript vorbereiten -$InfraParams = @() -if ($Force) { $InfraParams += "-Force" } -if ($All) { $InfraParams += "-All" } - -# Weiterleitung an Infrastructure-Skript -Write-ColorOutput "`n🔄 Weiterleitung an Infrastructure-Bereinigungsskript..." "Info" - -try { - if ($InfraParams.Count -gt 0) { - & $InfraScript @InfraParams - } else { - & $InfraScript - } - - $ExitCode = $LASTEXITCODE - - if ($ExitCode -eq 0) { - Write-ColorOutput "`n🎉 Bereinigung erfolgreich abgeschlossen!" "Success" - } else { - Write-ColorOutput "`n❌ Bereinigung fehlgeschlagen (Exit Code: $ExitCode)" "Error" - } - - exit $ExitCode -} catch { - Write-ColorOutput "`n💥 Unerwarteter Fehler bei der Bereinigung:" "Error" - Write-ColorOutput " $($_.Exception.Message)" "Error" - exit 1 -} \ No newline at end of file