geogame/docker-entrypoint.sh

14 lines
313 B
Bash

#!/usr/bin/env bash
# Collect static files
echo "Collect static files"
python manage.py collectstatic --noinput
# Apply database migrations
echo "Apply database migrations"
python manage.py migrate
# Start server
echo "Starting server"
gunicorn -b 0.0.0.0:8080 --workers 4 --threads 4 geogame.wsgi:application