2017-09-13 17:16:14 +02:00
|
|
|
# https://docs.weblate.org/en/latest/admin/install.html#production-cron
|
|
|
|
# Fulltext index updates
|
2017-09-20 15:14:35 +02:00
|
|
|
10 * * * * root cd "__FINALPATH__" && source __FINALPATH__/venv/bin/activate && DJANGO_SETTINGS_MODULE="weblate.settings" weblate update_index
|
2017-09-13 17:16:14 +02:00
|
|
|
|
|
|
|
# Cleanup stale objects
|
2017-09-20 15:14:35 +02:00
|
|
|
@daily root cd "__FINALPATH__" && source __FINALPATH__/venv/bin/activate && DJANGO_SETTINGS_MODULE="weblate.settings" weblate cleanuptrans
|
2017-09-13 17:16:14 +02:00
|
|
|
|
|
|
|
# Commit pending changes after 96 hours
|
2017-09-20 15:14:35 +02:00
|
|
|
@hourly root cd "__FINALPATH__" && source __FINALPATH__/venv/bin/activate && DJANGO_SETTINGS_MODULE="weblate.settings" weblate commit_pending --all --age=96 --verbosity=0
|