fixed deploy and navigation
This commit is contained in:
@@ -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..."
|
||||
|
||||
Reference in New Issue
Block a user