Fix: always delete+restart node process on deploy; add no-cache via registry
All checks were successful
Deploy to dev.bl.pixeldev.eu / deploy (push) Successful in 2s
All checks were successful
Deploy to dev.bl.pixeldev.eu / deploy (push) Successful in 2s
This commit is contained in:
parent
9520eb170f
commit
220818a82f
@ -51,9 +51,8 @@ jobs:
|
|||||||
PORT=$((4000 + $(echo -n "$SLUG" | cksum | cut -d' ' -f1) % 1000))
|
PORT=$((4000 + $(echo -n "$SLUG" | cksum | cut -d' ' -f1) % 1000))
|
||||||
|
|
||||||
# Start or restart
|
# Start or restart
|
||||||
pm2 describe "deploy-${SLUG}" > /dev/null 2>&1 \
|
pm2 delete "deploy-${SLUG}" 2>/dev/null || true
|
||||||
&& pm2 restart "deploy-${SLUG}" \
|
PORT=$PORT pm2 start "$ENTRY" --name "deploy-${SLUG}"
|
||||||
|| PORT=$PORT pm2 start "$ENTRY" --name "deploy-${SLUG}"
|
|
||||||
|
|
||||||
echo "port=$PORT" >> $GITHUB_OUTPUT
|
echo "port=$PORT" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user