fixing test and deploy script
All checks were successful
CI Deploy Laravel / Test (push) Successful in 1m32s
CI Deploy Laravel / Build (push) Successful in 3m35s
CI Deploy Laravel / Deploy (push) Successful in 1m29s

This commit is contained in:
2026-05-13 12:39:02 +08:00
parent 606faeda2a
commit 9007daad49

View File

@@ -142,6 +142,7 @@ jobs:
rsync -az --delete \ rsync -az --delete \
-e "sshpass -e ssh -p ${DEPLOY_PORT:-22}" \ -e "sshpass -e ssh -p ${DEPLOY_PORT:-22}" \
--exclude='.env' \ --exclude='.env' \
--exclude='storage/' \
--exclude='storage/logs/*' \ --exclude='storage/logs/*' \
--exclude='storage/framework/cache/*' \ --exclude='storage/framework/cache/*' \
--exclude='storage/framework/sessions/*' \ --exclude='storage/framework/sessions/*' \
@@ -184,7 +185,7 @@ jobs:
exit 1 exit 1
fi fi
sshpass -e ssh -p "${DEPLOY_PORT:-22}" "${DEPLOY_USER}@${DEPLOY_HOST}" "cd ${DEPLOY_PATH} && php artisan optimize:clear && php artisan config:cache && php artisan route:cache && php artisan view:cache" sshpass -e ssh -p "${DEPLOY_PORT:-22}" "${DEPLOY_USER}@${DEPLOY_HOST}" "cd ${DEPLOY_PATH} && mkdir -p storage/framework/cache/data storage/framework/sessions storage/framework/views storage/logs bootstrap/cache && chmod -R ug+rw storage bootstrap/cache && php artisan optimize:clear && php artisan config:cache && php artisan route:cache && php artisan view:cache"
# Required repository secrets: # Required repository secrets:
# - DEPLOY_HOST: Server hostname or IP. # - DEPLOY_HOST: Server hostname or IP.