2021-03-07 18:15:29 +01:00
|
|
|
#!/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"
|
2021-03-11 21:57:21 +01:00
|
|
|
uvicorn --host 0.0.0.0 --port 8000 --reload --debug --ws websockets my_demo.asgi:application
|