demo-HTML-over-WebSockets-i.../django-launcher.dev.sh
Andros Fenollosa e3e1a0144c Fix bad names
2021-03-08 21:25:34 +01:00

15 lines
333 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"
uvicorn --host 0.0.0.0 --port 8000 --reload my_demo.asgi:application