+ SYNC_LOCAL_PATH environment variable

This commit is contained in:
tmshv committed 2016-10-14 00:17:00 +03:00
1 parent 80d336e561
commit 54fbe4ef9c
2 files changed
+9 -1

No files matched your search

+8
View File
@@ -23,6 +23,14 @@ Authorize url. Replace with your app 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**
Path to local folder for compiled files (images, uploads)
+1 -1
View File
@@ -102,7 +102,7 @@ collection_news = 'news'
sync_provider_type = env('SYNC_PROVIDER', 'fs')
_providers_roots = {
'fs': abs_fn('/Users/tmshv/Yandex.Disk'),
'fs': abs_fn(env('SYNC_LOCAL_PATH')),
'yd': abs_fn('/'),
}
f = _providers_roots[sync_provider_type]