repcofkk/entrypoint.sh

10 lines
299 B
Bash

#!/bin/sh
python ./manage.py migrate --no-input
python ./manage.py collectstatic --no-input
DJANGO_SUPERUSER_PASSWORD=$SUPER_USER_PASSWORD python ./manage.py createsuperuser --username $SUPER_USER_NAME --email $SUPER_USER_EMAIL --noinput
gunicorn ./repcofkk.wsgi:application --bind 0.0.0.0:8000