docker-ovh/django-cas/code/docker-entrypoint.sh

15 lines
319 B
Bash
Raw Normal View History

2019-07-25 21:29:33 +02:00
#!/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