davinci/start.sh
Kevin Alberts a61948d870
All checks were successful
continuous-integration/drone Build is passing
Update start
2024-01-23 15:22:54 +01:00

15 lines
409 B
Bash

#!/bin/sh
# Copy configuration to proper place
cp "/config/local.py" "/usr/src/app/davinci/local.py"
cp "/config/credentials.json" "/usr/src/app/credentials.json"
# Make sure staticfiles are collected into the static volume
python3 manage.py collectstatic --noinput
# Make sure database is migrated
python3 manage.py migrate
# Start django server (ASGI)
daphne -b 0.0.0.0 -p 8080 davinci.asgi:application