Skip to content
Snippets Groups Projects
Verified Commit f21bc38e authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

[Docker] Clear caches on migrate

parent 7a607419
Branches clear-cache-on-migrate
No related tags found
1 merge request!944[Docker] Clear caches on migrate
Pipeline #52537 passed
......@@ -13,6 +13,7 @@ Changed
~~~~~~~
* [Dev] The (undocumented) setting PDF_CONTEXT_PROCESSORS is now named NON_REQUEST_CONTEXT_PROCESSORS
* [Docker] Cache is now cleared if migrations are applied
`2.7.1`_ - 2022-01-28
---------------------
......
......@@ -48,7 +48,11 @@ wait_database() {
prepare_database() {
# Migrate database; should only be run in app container or job
aleksis-admin migrate && aleksis-admin createinitialrevisions
if aleksis-admin migrate --check >/dev/null 2>&1; then
aleksis-admin migrate && \
aleksis-admin clear_cache && \
aleksis-admin createinitialrevisions
fi
}
# Wait for database to be reachable under all conditions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment