This commit is contained in:
parent
9e324537c3
commit
fa6550bcf5
4 changed files with 66 additions and 5 deletions
13
start.sh
Normal file
13
start.sh
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Copy configuration to proper place
|
||||
cp "/config/local.py" "/usr/src/app/davinci/local.py"
|
||||
|
||||
# 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
|
Loading…
Add table
Add a link
Reference in a new issue