product_scrap / entrypoint.sh
izaheeerr's picture
Update entrypoint.sh
d37ef54 verified
Raw
History Blame Contribute Delete
306 Bytes
#!/bin/bash
python manage.py migrate --noinput
if [ "$DJANGO_SUPERUSER_USERNAME" ]; then
python manage.py createsuperuser \
--no-input \
--username $DJANGO_SUPERUSER_USERNAME \
--email $DJANGO_SUPERUSER_EMAIL
fi
exec uvicorn funsol.asgi:application --host 0.0.0.0 --port 7860