#!/bin/bash # Start Redis in the background redis-server --daemonize yes # Wait for Redis to start sleep 2 # Start Celery worker in the background export C_FORCE_ROOT=true celery -A src.tasks.ocr_tasks worker --loglevel=info & # Start FastAPI exec uvicorn src.main:app --host 0.0.0.0 --port 7860 --proxy-headers --forwarded-allow-ips "*"