Files
hudozka/modules/sync
dependabot[bot] 78b2c734fc Bump lxml from 4.9.1 to 6.1.0 in /modules/sync (#293)
Bumps [lxml](https://github.com/lxml/lxml) from 4.9.1 to 6.1.0.
- [Release notes](https://github.com/lxml/lxml/releases)
- [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt)
- [Commits](https://github.com/lxml/lxml/compare/lxml-4.9.1...lxml-6.1.0)

---
updated-dependencies:
- dependency-name: lxml
  dependency-version: 6.1.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-22 13:38:31 +03:00
..
2020-03-21 20:02:59 +03:00
2020-03-29 01:39:06 +03:00
2020-02-29 01:19:04 +03:00
2020-02-23 21:25:17 +03:00
2020-03-29 01:39:06 +03:00
2020-02-23 21:25:17 +03:00
2020-02-27 21:02:17 +03:00
2020-03-29 01:39:06 +03:00
2020-02-23 21:25:17 +03:00

Usage

Sync tool

<ENV> python3 sync.py

Environment variables

YANDEX_DISK_ACCESS_TOKEN

For access to files using Yandex.Disk API

How to obtain token for testing

Example:

YANDEX_DISK_ACCESS_TOKEN=<Your_Access_Token>

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:

SYNC_LOCAL_PATH=/Users/tmshv/Yandex.Disk

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 MongoDB access

Example:

mongodb://localhost:27017/hudozka

SYNC_ENV

Environment like NODE_ENV

  • production default value
  • development don't update/delete documents from DB