14 lines
315 B
Bash
14 lines
315 B
Bash
![]() |
#!/bin/sh
|
||
|
set -e
|
||
|
|
||
|
echo "Running migrations..."
|
||
|
python manage.py migrate --noinput
|
||
|
|
||
|
echo "Creating superuser if it doesn't exist..."
|
||
|
python manage.py createsuperuser \
|
||
|
--noinput \
|
||
|
--username "${DJANGO_SUPERUSER_USERNAME}" \
|
||
|
--email "${DJANGO_SUPERUSER_EMAIL}" || true
|
||
|
|
||
|
echo "Starting server..."
|
||
|
exec "$@"
|