You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
337 B
Bash

#!/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 2 --log-level debug