#!/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