2019-08-23 08:47:19 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Wait for MySQL connection
|
|
|
|
/bin/bash wait-for-it.sh
|
|
|
|
|
|
|
|
## Needs a connection to a DB so migrations go here
|
|
|
|
python3 manage.py makemigrations website
|
|
|
|
python3 manage.py migrate
|
2019-10-08 04:21:08 -07:00
|
|
|
python3 manage.py createuser admin $ADMIN_PASSWORD --superuser
|
2019-08-23 08:47:19 -07:00
|
|
|
|
2019-10-08 04:21:08 -07:00
|
|
|
python3 manage.py startcelery
|
2019-08-23 08:47:19 -07:00
|
|
|
python3 manage.py runserver 0.0.0.0:8000
|