| #!/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}" |