django-multipage-template-f.../django-launcher.sh
Andros Fenollosa 12ba5461fd First commit
2022-04-19 21:14:01 +02:00

12 lines
300 B
Bash

#!/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 project_template.asgi:application