SSE-Fake/django-launcher.sh

12 lines
292 B
Bash
Raw Permalink Normal View History

2022-03-04 11:33:29 +01:00
#!/bin/sh
# Collect static files
python3 manage.py collectstatic --noinput
# Apply database migrations
python3 manage.py migrate
# Start server with debug mode
#python3 manage.py runserver 0.0.0.0:8000
# Start server with production mode
daphne -b 0.0.0.0 -p 8000 sse_fake.asgi:application