cabot/bin/build-app
Frank Hamand 3a5e524b04 Automatically initialise database and assets on docker start
Currently the first time you run the server you need to manually
syncdb, create superuser and collect assets. Do this automatically
on container launch
2017-02-09 17:58:06 +00:00

7 lines
160 B
Bash
Executable File

#!/bin/sh
set -e
python manage.py syncdb --noinput
python manage.py collectstatic --noinput
python manage.py create_cabot_superuser
# python manage.py compress