umap/docker/entrypoint.sh
Yohan Boniface 2e2119420b 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.
2024-02-19 10:03:47 +01:00

13 lines
255 B
Bash
Executable file

#!/usr/bin/env bash
set -eo pipefail
source /venv/bin/activate
# collect static files
umap collectstatic --noinput
# now wait for the database
umap wait_for_database
# then migrate the database
umap migrate
# run uWSGI
exec uwsgi --ini docker/uwsgi.ini