From 6130b766616874e49ff7351e82c9ff73c15393a3 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Sun, 18 Sep 2016 10:12:16 +0300 Subject: [PATCH] [sync] + README --- utils/Sync/README.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 utils/Sync/README.md diff --git a/utils/Sync/README.md b/utils/Sync/README.md new file mode 100644 index 00000000..08483aa4 --- /dev/null +++ b/utils/Sync/README.md @@ -0,0 +1,44 @@ +## Usage + +Sync Hudozka +```bash + python3 sync.py +``` + + +### Environment variables + +**YANDEX_DISK_ACCESS_TOKEN** +For access to files using Yandex.Disk API + +Example: +```bash +YANDEX_DISK_ACCESS_TOKEN= +``` + +**SYNC_STATIC** +Path to local folder for compiled files (images, uploads) + +Example: +```bash +SYNC_STATIC=~/Desktop/Hudozka Static +``` + +**SYNC_PROVIDER** +Type of file provider + +- *fs* for local access +- *yd* for access using Yandex.Disk API (YANDEX_DISK_ACCESS_TOKEN is required) + +Example: +```bash +SYNC_PROVIDER=fs +``` + +**MONGO_URI** +URI for access to MongoDB +Example: mongodb://localhost:27017/hudozka + +**SYNC_ENV** +- *production* default value +- *development* don't update/delete documents from DB