Docker - compilation des messages traduits pour l'application

This commit is contained in:
Olivier DOSSMANN
2017-08-25 13:14:01 +01:00
parent 99ed5d574c
commit 84e1baa64b
3 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,8 @@ elif [ "$1" = 'prod' ]; then
export DJANGO_ENV='production'
# Collect static files
python3 manage.py collectstatic --noinput --clear -v 0
# translations generation
python3 manage.py compilemessages
exec uwsgi --ini uwsgi.ini --pythonpath "$APPS_DIR" --static-map=/static/="$STATIC_ROOT"
fi