Enhance deployment script with build validation checks
Some checks failed
Code Analysis (JS/Vue) / analyze (push) Failing after 49s
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:
@@ -145,6 +145,21 @@ echo ""
|
|||||||
echo "5. Building application..."
|
echo "5. Building application..."
|
||||||
npm run build
|
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)
|
# 6. Restore Production Data (überschreibe Repo-Defaults mit Backup)
|
||||||
echo ""
|
echo ""
|
||||||
echo "6. Restoring production data..."
|
echo "6. Restoring production data..."
|
||||||
|
|||||||
@@ -12,8 +12,11 @@
|
|||||||
|
|
||||||
<div class="bg-white rounded-xl shadow-lg p-8">
|
<div class="bg-white rounded-xl shadow-lg p-8">
|
||||||
<!-- Debug: Sichtbarer Test -->
|
<!-- Debug: Sichtbarer Test -->
|
||||||
<div class="mb-4 p-2 bg-yellow-100 border border-yellow-300 rounded text-xs">
|
<div class="mb-4 p-3 bg-yellow-200 border-2 border-yellow-500 rounded-lg text-sm font-mono">
|
||||||
<strong>DEBUG:</strong> Komponente geladen. handleFormSubmit definiert: {{ typeof handleFormSubmit !== 'undefined' ? 'JA' : 'NEIN' }}
|
<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>
|
</div>
|
||||||
|
|
||||||
<form
|
<form
|
||||||
|
|||||||
Reference in New Issue
Block a user