umap/docker/entrypoint.sh
2024-02-18 10:22:24 -05:00

13 lines
262 B
Bash
Executable file

#!/usr/bin/env bash
set -eo pipefail
source /venv/bin/activate
# first 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