mirror of
https://github.com/reconurge/flowsint.git
synced 2026-04-28 10:22:58 -05:00
15 lines
370 B
Bash
Executable File
15 lines
370 B
Bash
Executable File
#!/bin/sh
|
|
set -e # Arrêter le script en cas d'erreur
|
|
|
|
if [ "$1" = "app" ]; then
|
|
echo "Démarrage de FastAPI..."
|
|
exec uvicorn app.main:app --host 0.0.0.0 --port 5000
|
|
elif [ "$1" = "celery" ]; then
|
|
echo "Démarrage de Celery..."
|
|
exec celery -A app.core.celery worker --loglevel=info
|
|
celery -A celery_app worker --loglevel=info
|
|
|
|
else
|
|
exec "$@"
|
|
fi
|