relay/entrypoint.sh
Andros Fenollosa ee44472c74 Replace Django dev server with uvicorn ASGI
Switches from runserver to uvicorn for proper ASGI support, needed for
SSE streaming responses. Runs with 4 workers on port 8000.
2026-05-19 09:09:16 +02:00

16 lines
No EOL
390 B
Bash
Executable file

#!/bin/bash
set -e
echo "🚀 Starting Django application..."
# Run migrations
echo "🔄 Running database migrations..."
python manage.py migrate
# Check for any issues
echo "🔍 Checking Django configuration..."
python manage.py check
# Start application server
echo "🎯 Starting uvicorn on 0.0.0.0:8000..."
exec uvicorn core.asgi:application --host 0.0.0.0 --port 8000 --workers 4