html-over-websockets-with-d.../django-launcher.sh
Andros Fenollosa b57103eabd First commit
2021-11-08 23:32:13 +01:00

16 lines
350 B
Bash

#!/bin/sh
# Collect static files
echo "Collect static files"
python3 manage.py collectstatic --noinput
# Apply database migrations
echo "Apply database migrations"
python3 manage.py makemigrations
python3 manage.py migrate
# Start server
echo "Starting server"
## With WebSockets
uvicorn --host 0.0.0.0 --port 8000 --reload event.asgi:application