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