This commit is contained in:
Manuel
2025-09-17 23:29:48 +02:00
parent 2e863dc6a8
commit f156679578
3 changed files with 13 additions and 10 deletions

4
run.sh
View File

@@ -1,10 +1,10 @@
#!/bin/bash
# This script starts the FastAPI application using Gunicorn.
echo "Starting DocProcessor with Gunicorn..."
echo "Starting DocProcessor with Gunicorn on port 0.0.0.0:8000..."
exec gunicorn -w 4 --threads 2 -k uvicorn.workers.UvicornWorker --forwarded-allow-ips='*' main:app -b 0.0.0.0:8000 &
echo "Done"
echo "Starting huey..."
exec huey_consumer.py main.huey -w 4 &
exec huey_consumer.py main.huey -w 4
echo "Done"