#!/bin/sh

echo "Applying database migrations..."
python manage.py migrate --noinput

echo "Collecting static files..."
python manage.py collectstatic --noinput

echo "Starting Gunicorn..."
gunicorn SAF_backend.wsgi:application --bind 0.0.0.0:8000 --workers 3 --timeout 120
