From eae2889f37e6aa9176d9a521440ac6f053d70562 Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Thu, 8 Jan 2026 23:28:25 +0100 Subject: [PATCH] Update deployment script to ensure PM2 processes start with updated environment variables. This change improves the reliability of the process startup by incorporating the --update-env flag, enhancing deployment robustness. --- deploy-production.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy-production.sh b/deploy-production.sh index ca8913d..008d9d6 100755 --- a/deploy-production.sh +++ b/deploy-production.sh @@ -323,7 +323,7 @@ fi if ! pm2 describe harheimertc &> /dev/null; then echo "WARNING: PM2-Prozess 'harheimertc' existiert nicht." echo "Versuche, den Prozess zu starten..." - pm2 start harheimertc.config.cjs || pm2 start harheimertc.simple.cjs || { + pm2 start harheimertc.config.cjs --update-env || pm2 start harheimertc.simple.cjs --update-env || { echo "ERROR: Konnte PM2-Prozess nicht starten." echo "Bitte manuell starten: pm2 start harheimertc.config.cjs" exit 1