From 6368bf9e70734d80064e8b8a9f4f45ec002cde92 Mon Sep 17 00:00:00 2001 From: "Joseph.Rawlings" Date: Sun, 1 Mar 2026 16:30:09 +0100 Subject: [PATCH] Update gitapplyfast.sh --- gitapplyfast.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitapplyfast.sh b/gitapplyfast.sh index b7e88d790..e7bd53a10 100644 --- a/gitapplyfast.sh +++ b/gitapplyfast.sh @@ -246,7 +246,7 @@ run_remote_update() { # FAST MODE: Skip npm update, npm upgrade, and composer upgrade ssh -o StrictHostKeyChecking=no -o ConnectTimeout=10 -o BatchMode=yes -i "$SSH_KEY" root@"$node" \ - 'cd /var/www/paymenter && git pull && php artisan view:clear && php artisan cache:clear && php artisan optimize && while ! systemctl restart php8.3-fpm 2>/dev/null; do echo "PHP-FPM restart failed, running optimize and retrying..."; php artisan optimize; sleep 1; done' \ + 'cd /var/www/paymenter && git reset --hard && git pull --rebase && git pull && php artisan view:clear && php artisan cache:clear && php artisan optimize && while ! systemctl restart php8.3-fpm 2>/dev/null; do echo "PHP-FPM restart failed, running optimize and retrying..."; php artisan optimize; sleep 1; done' \ > "$STATUS_DIR/${node}.log" 2>&1 if [ $? -eq 0 ]; then