Fixes #947: Rebuild search index when needed
This rebuilds the search index when models where updated.
This commit is contained in:
parent
879c700bb8
commit
e60a746eee
@ -46,6 +46,8 @@ if ! ./manage.py migrate --check >/dev/null 2>&1; then
|
|||||||
./manage.py remove_stale_contenttypes --no-input
|
./manage.py remove_stale_contenttypes --no-input
|
||||||
echo "⚙️ Removing expired user sessions"
|
echo "⚙️ Removing expired user sessions"
|
||||||
./manage.py clearsessions
|
./manage.py clearsessions
|
||||||
|
echo "⚙️ Building search index (lazy)"
|
||||||
|
./manage.py reindex --lazy
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create Superuser if required
|
# Create Superuser if required
|
||||||
|
Loading…
Reference in New Issue
Block a user