From e60a746eeed53e85eef9941517e8f3f07891433d Mon Sep 17 00:00:00 2001 From: Tobias Genannt Date: Thu, 23 Feb 2023 08:37:53 +0100 Subject: [PATCH] Fixes #947: Rebuild search index when needed This rebuilds the search index when models where updated. --- docker/docker-entrypoint.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index ff495e6..72d2b33 100755 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -46,6 +46,8 @@ if ! ./manage.py migrate --check >/dev/null 2>&1; then ./manage.py remove_stale_contenttypes --no-input echo "⚙️ Removing expired user sessions" ./manage.py clearsessions + echo "⚙️ Building search index (lazy)" + ./manage.py reindex --lazy fi # Create Superuser if required