Files
MES_Core/entrypoint.sh

8 lines
248 B
Bash

#!/bin/sh
echo "Collecting static files..."
python manage.py collectstatic --noinput
echo "Applying database migrations..."
python manage.py migrate --noinput
python manage.py createsuperuser --no-input || true
echo "Starting Gunicorn..."
exec "$@"