This commit is contained in:
erdnaxe 2020-02-03 14:07:50 +01:00
parent 9d16b90d0d
commit aac1b403db
10 changed files with 289 additions and 3 deletions

11
django-cas-server/entrypoint.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/bash
# Collect static files
python manage.py collectstatic --noinput
# Apply database migrations
sleep 3 # wait for db
python manage.py migrate
# Start server
gunicorn cas.wsgi:application --bind 0.0.0.0:8000 --workers 2 --log-level debug