izaheeerr commited on
Commit
4eff4d0
·
verified ·
1 Parent(s): fbda09c

Create entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +10 -0
entrypoint.sh ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ python manage.py migrate --noinput
2
+
3
+ if [ "$DJANGO_SUPERUSER_USERNAME" ]; then
4
+ python manage.py createsuperuser \
5
+ --no-input \
6
+ --username $DJANGO_SUPERUSER_USERNAME \
7
+ --email $DJANGO_SUPERUSER_EMAIL
8
+ fi
9
+
10
+ exec uvicorn funsol.asgi:application --host 0.0.0.0 --port 7860