geogame/docker-entrypoint.sh
Torma Kristóf 5cef411aff
All checks were successful
continuous-integration/drone/push Build is passing
add docker-entrypoint
2020-12-29 22:20:14 +01:00

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