fixed deploy and navigation
This commit is contained in:
@@ -279,9 +279,25 @@ use_project_node
|
||||
ensure_node_version
|
||||
install_dependencies_if_needed
|
||||
|
||||
# 4. Remove old build (but keep data!)
|
||||
# 4. Stop running apps 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; then
|
||||
for instance_name in harheimertc harheimertc-3102; do
|
||||
if pm2 describe "$instance_name" >/dev/null 2>&1; then
|
||||
pm2 stop "$instance_name" || true
|
||||
echo " ✓ $instance_name gestoppt"
|
||||
else
|
||||
echo " PM2-Prozess $instance_name läuft nicht"
|
||||
fi
|
||||
done
|
||||
else
|
||||
echo " 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