#!/usr/bin/env bash # Run API on this machine. Set API_KEYS (and optionally others) in .env or env. set -e cd "$(dirname "$0")" if [ ! -d ".venv" ]; then python3 -m venv .venv .venv/bin/pip install -r requirements.txt fi . .venv/bin/activate export API_KEYS="${API_KEYS:-dev-key}" exec uvicorn app.main:app --host 0.0.0.0 --port 8000 "$@"