fix wrong local disk for export, and prefer local to remote

This commit is contained in:
HamuZ HamuZ 2018-10-23 18:44:12 +03:00
parent d2e1493530
commit 321676c97f

View File

@ -28,13 +28,13 @@ $uploadDisk = [
$exportDisk = [ $exportDisk = [
'driver' => 'mirror', 'driver' => 'mirror',
'disks' => ['local-upload'], 'disks' => ['local-export'],
]; ];
// setting the SFTP host is enough to trigger the SFTP option. // setting the SFTP host is enough to trigger the SFTP option.
if ('' !== env('SFTP_HOST', '')) { if ('' !== env('SFTP_HOST', '')) {
array_unshift($uploadDisk['disks'], 'sftp-upload'); array_push($uploadDisk['disks'], 'sftp-upload');
array_unshift($exportDisk['disks'], 'sftp-export'); array_push($exportDisk['disks'], 'sftp-export');
} }
return [ return [