doc-ai-api / start.sh
LongK171's picture
Add all
dbe2c62
raw
history blame contribute delete
272 Bytes
#!/usr/bin/env bash
set -e
# Uvicorn picks PORT from env (Spaces sets it). HOST is 0.0.0.0 for external access.
# Workers=1 to keep memory predictable on small machines; tune up if needed.
exec uvicorn app:app --host "${HOST:-0.0.0.0}" --port "${PORT:-7860}" --workers 1