mirror of
https://github.com/YunoHost-Apps/weblate_ynh.git
synced 2024-10-01 13:35:04 +02:00
add DJANGO_SETTINGS_MODULE
This commit is contained in:
parent
5440b85bbb
commit
2e32edc3b9
2 changed files with 6 additions and 5 deletions
|
@ -1,9 +1,9 @@
|
|||
# https://docs.weblate.org/en/latest/admin/install.html#production-cron
|
||||
# Fulltext index updates
|
||||
10 * * * * www-data cd "__FINALPATH__" && source __FINALPATH__/venv/bin/activate && weblate update_index --settings weblate.settings
|
||||
10 * * * * www-data cd "__FINALPATH__" && source __FINALPATH__/venv/bin/activate && DJANGO_SETTINGS_MODULE="weblate.settings" weblate update_index
|
||||
|
||||
# Cleanup stale objects
|
||||
@daily cd "__FINALPATH__" && source __FINALPATH__/venv/bin/activate && weblate cleanuptrans --settings weblate.settings
|
||||
@daily cd "__FINALPATH__" && source __FINALPATH__/venv/bin/activate && DJANGO_SETTINGS_MODULE="weblate.settings" weblate cleanuptrans
|
||||
|
||||
# Commit pending changes after 96 hours
|
||||
@hourly cd "__FINALPATH__" && source __FINALPATH__/venv/bin/activate && weblate commit_pending --all --age=96 --verbosity=0 --settings weblate.settings
|
||||
@hourly cd "__FINALPATH__" && source __FINALPATH__/venv/bin/activate && DJANGO_SETTINGS_MODULE="weblate.settings" weblate commit_pending --all --age=96 --verbosity=0
|
||||
|
|
|
@ -173,9 +173,10 @@ echo "SPECIFIC SETUP Filling up the database"
|
|||
(
|
||||
set +eu
|
||||
source ${final_path}/venv/bin/activate
|
||||
weblate migrate --noinput --settings weblate.settings
|
||||
export DJANGO_SETTINGS_MODULE="weblate.settings"
|
||||
weblate migrate --noinput
|
||||
# generate static files
|
||||
weblate collectstatic --noinput --settings weblate.settings
|
||||
weblate collectstatic --noinput
|
||||
)
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue