aboutsummaryrefslogtreecommitdiffstats
path: root/docker/app/scripts/migrate.sh
blob: c4f59b12b61443e7274ef7824a85b57df5fceb31 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env bash

echo --- Applying migrations ---
python manage.py migrate --verbosity 2

echo --- Collecting static files ---
python manage.py collectstatic --no-input --clear --verbosity 2

echo --- Starting uwsgi ---
exec "$@"  # This runs the CMD at the end of the Dockerfile