Add Django CAS server

This commit is contained in:
Alexandre Iooss 2019-07-25 21:29:33 +02:00
parent 4c7bced64b
commit 8325856cb3
No known key found for this signature in database
GPG key ID: 6C79278F3FCDCC02
9 changed files with 312 additions and 0 deletions

View file

@ -0,0 +1,14 @@
#!/bin/bash
# Collect static files
echo "Collect static files"
python3 manage.py collectstatic --noinput
# Apply database migrations
echo "Apply database migrations"
sleep 5 # wait for db
python3 manage.py migrate
# Start server
echo "Starting server"
gunicorn3 cas.wsgi:application --bind 0.0.0.0:8000 --workers 4