Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9f1b0cf0e3 |
@@ -143,6 +143,16 @@ if test "$dry_run" != "true"; then
|
|||||||
--workdir "$CONTAINER_DEPLOY_ROOT/current" \
|
--workdir "$CONTAINER_DEPLOY_ROOT/current" \
|
||||||
"$PHP_CONTAINER" php artisan up
|
"$PHP_CONTAINER" php artisan up
|
||||||
maintenance_enabled=false
|
maintenance_enabled=false
|
||||||
|
# Ask queue workers to exit after the current job (cache signal).
|
||||||
|
artisan queue:restart || true
|
||||||
|
# Restart host daemons so they pick up the new `current` release.
|
||||||
|
if command -v systemctl >/dev/null 2>&1; then
|
||||||
|
if command -v sudo >/dev/null 2>&1 && sudo -n true 2>/dev/null; then
|
||||||
|
sudo -n systemctl try-restart new-pet-queue-worker.service new-pet-ai-worker.service || true
|
||||||
|
else
|
||||||
|
systemctl try-restart new-pet-queue-worker.service new-pet-ai-worker.service 2>/dev/null || true
|
||||||
|
fi
|
||||||
|
fi
|
||||||
curl --fail --silent --show-error \
|
curl --fail --silent --show-error \
|
||||||
--retry 6 --retry-delay 5 --retry-connrefused \
|
--retry 6 --retry-delay 5 --retry-connrefused \
|
||||||
"$HEALTHCHECK_URL" >/dev/null
|
"$HEALTHCHECK_URL" >/dev/null
|
||||||
|
|||||||
Reference in New Issue
Block a user