Update gitapplyfast.sh

This commit is contained in:
2026-03-01 16:30:09 +01:00
parent 3fa4c9d65e
commit 6368bf9e70

View File

@@ -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