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:
parent
5776be71cb
commit
2e2119420b
1 changed files with 3 additions and 3 deletions
|
@ -3,11 +3,11 @@ set -eo pipefail
|
|||
|
||||
source /venv/bin/activate
|
||||
|
||||
# first wait for the database
|
||||
# collect static files
|
||||
umap collectstatic --noinput
|
||||
# now wait for the database
|
||||
umap wait_for_database
|
||||
# then migrate the database
|
||||
umap migrate
|
||||
# then collect static files
|
||||
umap collectstatic --noinput
|
||||
# run uWSGI
|
||||
exec uwsgi --ini docker/uwsgi.ini
|
||||
|
|
Loading…
Reference in a new issue