Spaces:
Sleeping
Sleeping
Create entrypoint.sh
Browse files- 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
|