fixed deploy and navigation
Some checks failed
Code Analysis and Production Deploy / deploy-production (push) Has been cancelled
Code Analysis and Production Deploy / analyze (push) Has been cancelled
Code Analysis and Production Deploy / deploy-test (push) Has been cancelled

This commit is contained in:
Torsten Schulz (local)
2026-06-10 16:36:50 +02:00
parent 7e533fae49
commit 14cd5f04d5
6 changed files with 97 additions and 8 deletions

View File

@@ -285,9 +285,19 @@ use_project_node
ensure_node_version
install_dependencies_if_needed
# 4. Remove old build (but keep data!)
# 4. Stop running app before replacing build artifacts
echo ""
echo "4. Cleaning build artifacts..."
echo "4. Stopping PM2 before replacing build artifacts..."
if command -v pm2 >/dev/null 2>&1 && pm2 describe harheimertc.test >/dev/null 2>&1; then
pm2 stop harheimertc.test || true
echo " ✓ harheimertc.test gestoppt"
else
echo " PM2-Prozess harheimertc.test läuft nicht oder PM2 ist nicht verfügbar"
fi
# 5. Remove old build (but keep data!)
echo ""
echo "5. Cleaning build artifacts..."
# Sicherstellen, dass .output vollständig gelöscht wird
if [ -d ".output" ]; then
echo " Removing .output directory..."