And*_*ade 2 php laravel laravel-excel laravel-vapor laravel-8
当我尝试运行实现块读取和队列的导入时,我从 Vapor 队列收到以下错误;
ErrorException: touch(): Unable to create file /tmp/storage/framework/laravel-excel/laravel-excel-7IEEz0rP7NORtp7N4NeOxuH0hlbM9JPR.csv because No such file or directory in /var/task/vendor/maatwebsite/excel/src/Files/RemoteTemporaryFile.php:97
Run Code Online (Sandbox Code Playgroud)
Laravel Excel 文档说要在 config/excel.php 中设置这些值
https://docs.laravel-excel.com/3.1/imports/queued.html#multi-server-setup
'temporary_files' => [
'local_path' => storage_path('framework/laravel-excel'),
'remote_disk' => 's3',
'force_resync_remote' => true,
Run Code Online (Sandbox Code Playgroud)
我的 steam yml 文件具有以下存储设置,并且使用正确的 env 值一切正常。用于蒸汽和当地发展
storage: **correct bucket name**
Run Code Online (Sandbox Code Playgroud)
有没有人设法使用 Laravel Excel 和 Vapor 进行排队导入,如果是的话,您是如何管理的?该文档并没有真正解释我应该使用什么值
尝试在配置文件中设置local_path为 tmp 目录
<?php
return [
'temporary_files' => [
'local_path' => sys_get_temp_dir(),
...
],
];
Run Code Online (Sandbox Code Playgroud)