fix: run collectstatic first in Docker entrypoint

Otherwise when calling any other django command, when loading
umap.urls, it will try to read the static manifest, which is not
existing or not up to date yet.
This commit is contained in:
Yohan Boniface 2024-02-19 10:03:47 +01:00
parent 5776be71cb
commit 2e2119420b

View file

@ -3,11 +3,11 @@ set -eo pipefail
source /venv/bin/activate source /venv/bin/activate
# first wait for the database # collect static files
umap collectstatic --noinput
# now wait for the database
umap wait_for_database umap wait_for_database
# then migrate the database # then migrate the database
umap migrate umap migrate
# then collect static files
umap collectstatic --noinput
# run uWSGI # run uWSGI
exec uwsgi --ini docker/uwsgi.ini exec uwsgi --ini docker/uwsgi.ini