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.
Some checks failed
Code Analysis (JS/Vue) / analyze (push) Failing after 52s
Some checks failed
Code Analysis (JS/Vue) / analyze (push) Failing after 52s
This commit is contained in:
@@ -323,7 +323,7 @@ fi
|
|||||||
if ! pm2 describe harheimertc &> /dev/null; then
|
if ! pm2 describe harheimertc &> /dev/null; then
|
||||||
echo "WARNING: PM2-Prozess 'harheimertc' existiert nicht."
|
echo "WARNING: PM2-Prozess 'harheimertc' existiert nicht."
|
||||||
echo "Versuche, den Prozess zu starten..."
|
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 "ERROR: Konnte PM2-Prozess nicht starten."
|
||||||
echo "Bitte manuell starten: pm2 start harheimertc.config.cjs"
|
echo "Bitte manuell starten: pm2 start harheimertc.config.cjs"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user