+ SYNC_LOCAL_PATH environment variable
This commit is contained in:
1 parent
80d336e561
commit
54fbe4ef9c
2 files changed
+9
-1
No files matched your search
@@ -23,6 +23,14 @@ Authorize url. Replace with your app id
|
|||||||
https://oauth.yandex.ru/authorize?response_type=token&client_id=<идентификатор приложения>
|
https://oauth.yandex.ru/authorize?response_type=token&client_id=<идентификатор приложения>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**SYNC_LOCAL_PATH**
|
||||||
|
Path to scan files from
|
||||||
|
|
||||||
|
Example:
|
||||||
|
```bash
|
||||||
|
SYNC_LOCAL_PATH=/Users/tmshv/Yandex.Disk
|
||||||
|
```
|
||||||
|
|
||||||
**SYNC_STATIC**
|
**SYNC_STATIC**
|
||||||
Path to local folder for compiled files (images, uploads)
|
Path to local folder for compiled files (images, uploads)
|
||||||
|
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ collection_news = 'news'
|
|||||||
sync_provider_type = env('SYNC_PROVIDER', 'fs')
|
sync_provider_type = env('SYNC_PROVIDER', 'fs')
|
||||||
|
|
||||||
_providers_roots = {
|
_providers_roots = {
|
||||||
'fs': abs_fn('/Users/tmshv/Yandex.Disk'),
|
'fs': abs_fn(env('SYNC_LOCAL_PATH')),
|
||||||
'yd': abs_fn('/'),
|
'yd': abs_fn('/'),
|
||||||
}
|
}
|
||||||
f = _providers_roots[sync_provider_type]
|
f = _providers_roots[sync_provider_type]
|
||||||
|
|||||||
Reference in new issue
Block a user