1
0
forked from ScoDoc/ScoDoc

invalidation cache Redis lors des mises à jour

This commit is contained in:
Emmanuel Viennet 2021-12-14 07:48:22 +01:00
parent 69431b4de0
commit ae42db06da
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# -*- mode: python -*-
# -*- coding: utf-8 -*-
SCOVERSION = "9.1.3"
SCOVERSION = "9.1.4"
SCONAME = "ScoDoc"

View File

@ -107,7 +107,7 @@ then
# utilise les scripts dans migrations/version/
# pour mettre à jour notre base (en tant qu'utilisateur scodoc)
export FLASK_ENV="production"
su -c "(cd $SCODOC_DIR && source venv/bin/activate && flask db upgrade)" "$SCODOC_USER"
su -c "(cd $SCODOC_DIR && source venv/bin/activate && flask db upgrade && flask clear-cache)" "$SCODOC_USER"
fi
# ------------ LOGROTATE