diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 52f6c74..efd706e 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -142,6 +142,7 @@ jobs: rsync -az --delete \ -e "sshpass -e ssh -p ${DEPLOY_PORT:-22}" \ --exclude='.env' \ + --exclude='storage/' \ --exclude='storage/logs/*' \ --exclude='storage/framework/cache/*' \ --exclude='storage/framework/sessions/*' \ @@ -184,7 +185,7 @@ jobs: exit 1 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: # - DEPLOY_HOST: Server hostname or IP.