2020-05-15 12:59:08 -05:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -eo pipefail
|
|
|
|
|
2023-06-05 08:44:32 -05:00
|
|
|
source /venv/bin/activate
|
|
|
|
|
2023-09-20 08:45:26 -05:00
|
|
|
# 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
|
2023-06-05 05:26:50 -05:00
|
|
|
exec uwsgi --ini docker/uwsgi.ini
|