aboutsummaryrefslogtreecommitdiffstats
path: root/docker/app/migrate_and_serve.sh
blob: 032504e2ab7f359aef7b3e7c2669e709f55fa57b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

### NOTE
# This file is intended to be used by local setups.
# You do not want to run the Django development server
# in production. The default Dockerfile command will
# run using uWSGI, this script is provided purely as
# a convenience to run migrations and start a development server.

echo [i] Applying migrations.
python manage.py migrate --verbosity 0
echo [i] Starting server.
python manage.py runserver 0.0.0.0:8000