refactor: [storage] tenant 저장소 경로를 shared-storage에서 storage/app/tenants로 변경
- tenant disk root: /var/www/shared-storage/tenants → storage_path('app/tenants')
- symlink 경로도 동일하게 변경
- react git pull 시 shared-storage 삭제 문제 해결
This commit is contained in:
@@ -40,17 +40,17 @@
|
||||
|
||||
/*
|
||||
|------------------------------------------------------------------
|
||||
| Tenant Storage Disk (Shared across API/MNG/Admin)
|
||||
| Tenant Storage Disk
|
||||
|------------------------------------------------------------------
|
||||
|
|
||||
| This disk is shared across all applications via Docker volume.
|
||||
| - Local (Docker): /var/www/shared-storage/tenants
|
||||
| 테넌트 파일 저장소 (명함, 신분증, 통장, 게시판 첨부파일 등)
|
||||
| - Local/Docker/Server: mng/storage/app/tenants
|
||||
| - S3: Set TENANT_STORAGE_DISK=s3 in .env
|
||||
|
|
||||
*/
|
||||
'tenant' => [
|
||||
'driver' => env('TENANT_STORAGE_DRIVER', 'local'),
|
||||
'root' => env('TENANT_STORAGE_PATH', '/var/www/shared-storage/tenants'),
|
||||
'root' => env('TENANT_STORAGE_PATH', storage_path('app/tenants')),
|
||||
'url' => env('APP_URL').'/tenant-storage',
|
||||
'visibility' => 'public',
|
||||
'throw' => false,
|
||||
@@ -102,7 +102,7 @@
|
||||
|
||||
'links' => [
|
||||
public_path('storage') => storage_path('app/public'),
|
||||
public_path('tenant-storage') => env('TENANT_STORAGE_PATH', '/var/www/shared-storage/tenants'),
|
||||
public_path('tenant-storage') => env('TENANT_STORAGE_PATH', storage_path('app/tenants')),
|
||||
],
|
||||
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user