Enhance deployment script with build validation checks
Some checks failed
Code Analysis (JS/Vue) / analyze (push) Failing after 49s

Add checks to verify the success of the build process in deploy-production.sh. Implement error messages for missing critical files and directories, improving error handling and providing clear feedback during deployment. This update aims to ensure a successful build before proceeding with production data restoration.
This commit is contained in:
Torsten Schulz (local)
2026-01-08 07:47:27 +01:00
parent f1cf06ca48
commit f05d47be4c
2 changed files with 20 additions and 2 deletions

View File

@@ -145,6 +145,21 @@ echo ""
echo "5. Building application..."
npm run build
# Prüfe, ob der Build erfolgreich war
if [ ! -d ".output/public/_nuxt" ]; then
echo "ERROR: Build fehlgeschlagen - .output/public/_nuxt Verzeichnis fehlt!"
echo "Bitte prüfen Sie die Build-Ausgabe auf Fehler."
exit 1
fi
# Prüfe, ob wichtige Dateien vorhanden sind
if [ ! -f ".output/server/index.mjs" ]; then
echo "ERROR: Build fehlgeschlagen - .output/server/index.mjs fehlt!"
exit 1
fi
echo " Build erfolgreich - .output/public/_nuxt vorhanden"
# 6. Restore Production Data (überschreibe Repo-Defaults mit Backup)
echo ""
echo "6. Restoring production data..."

View File

@@ -12,8 +12,11 @@
<div class="bg-white rounded-xl shadow-lg p-8">
<!-- Debug: Sichtbarer Test -->
<div class="mb-4 p-2 bg-yellow-100 border border-yellow-300 rounded text-xs">
<strong>DEBUG:</strong> Komponente geladen. handleFormSubmit definiert: {{ typeof handleFormSubmit !== 'undefined' ? 'JA' : 'NEIN' }}
<div class="mb-4 p-3 bg-yellow-200 border-2 border-yellow-500 rounded-lg text-sm font-mono">
<div class="font-bold text-yellow-900">🔍 DEBUG MODE AKTIV</div>
<div class="mt-1 text-yellow-800">Komponente: registrieren.vue geladen</div>
<div class="mt-1 text-yellow-800">Passkey-Support: {{ isPasskeySupported ? 'JA' : 'NEIN' }}</div>
<div class="mt-1 text-yellow-800">Use Passkey: {{ usePasskey ? 'JA' : 'NEIN' }}</div>
</div>
<form