File size: 515 Bytes
758929a
 
 
 
 
 
 
 
 
 
 
9d540bc
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
set -e

mkdir -p /app/logs /app/staticfiles /app/artifacts/service_intent_model

python manage.py migrate --noinput
python manage.py collectstatic --noinput

echo "=== Checking service-intent model ==="
python manage.py ensure_model --remote --wait --download-artifact || echo "WARNING: service-intent model is not ready; starting with deterministic service detection only."

exec gunicorn chatbot.wsgi:application --bind 0.0.0.0:7860 --workers "${WEB_CONCURRENCY:-1}" --timeout "${GUNICORN_TIMEOUT:-120}"