umap/docker/entrypoint.sh

16 lines
300 B
Bash
Raw Normal View History

2020-05-15 12:59:08 -05:00
#!/usr/bin/env bash
set -eo pipefail
source /venv/bin/activate
# first wait for the database
umap wait_for_database
2020-05-15 12:59:08 -05:00
# then migrate the database
umap migrate
# then collect static files
umap collectstatic --noinput
# compress static files
umap compress
# run uWSGI
exec uwsgi --ini docker/uwsgi.ini