QuentinL52's picture
Update start.sh
67b10dd verified
raw
history blame
439 Bytes
#!/bin/bash
# Lancer le worker Celery en arrière-plan
echo "Lancement du worker Celery connecté à Upstash..."
python -m celery -A tasks.worker_celery:celery_app worker --loglevel=info &
# Lancer l'API FastAPI au premier plan
# C'est le processus principal qui maintient le conteneur en vie
echo "Lancement de l'API FastAPI sur le port 8000..."
exec python -m uvicorn main:app --host 0.0.0.0 --port 8000