TradeFlowAI / start.sh
muhammadghiffari's picture
fix: sync cloud deployment snapshot with verified backend path
ae08068
Raw
History Blame Contribute Delete
341 Bytes
#!/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 "*"