mirror of
https://github.com/YunoHost-Apps/weblate_ynh.git
synced 2024-10-01 13:35:04 +02:00
9 lines
504 B
Text
9 lines
504 B
Text
# https://docs.weblate.org/en/latest/admin/install.html#production-cron
|
|
# Fulltext index updates
|
|
10 * * * * www-data cd "__FINALPATH__" && source __FINALPATH__/venv/bin/activate && python3 ./manage.py update_index
|
|
|
|
# Cleanup stale objects
|
|
@daily cd "__FINALPATH__" && source __FINALPATH__/venv/bin/activate && ./manage.py cleanuptrans
|
|
|
|
# Commit pending changes after 96 hours
|
|
@hourly cd "__FINALPATH__" && source __FINALPATH__/venv/bin/activate && ./manage.py commit_pending --all --age=96 --verbosity=0
|