Add Django CAS server
This commit is contained in:
parent
4c7bced64b
commit
8325856cb3
9 changed files with 312 additions and 0 deletions
14
django-cas/code/docker-entrypoint.sh
Executable file
14
django-cas/code/docker-entrypoint.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue