Files
hudozka/utils/Sync
2016-09-18 20:42:39 +03:00
..
2016-09-18 01:47:38 +03:00
2016-09-13 00:17:10 +03:00
2016-09-18 01:47:38 +03:00
2016-09-13 00:17:41 +03:00
2016-02-27 16:19:08 +03:00
2016-09-18 10:12:16 +03:00
2016-09-14 02:09:19 +03:00
2016-09-14 02:11:37 +03:00
2016-09-18 20:42:39 +03:00

Usage

Sync Hudozka

<ENV> python3 sync.py

Environment variables

YANDEX_DISK_ACCESS_TOKEN For access to files using Yandex.Disk API

Example:

YANDEX_DISK_ACCESS_TOKEN=<Your_Access_Token>

SYNC_STATIC Path to local folder for compiled files (images, uploads)

Example:

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:

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