Files
my_shop/entrypoint.sh

9 lines
222 B
Bash

#!/bin/sh
# Собираем статику
echo "Collecting static files..."
python manage.py collectstatic --noinput
# Запускаем основную команду (Gunicorn)
echo "Starting Gunicorn..."
exec "$@"