- Add ia_dev submodule (projects/smart_ide on forge 4nk) - Document APIs, orchestrator, gateway, local-office, rollout - Add systemd/scripts layout; relocate setup scripts - Remove obsolete nginx/enso-only docs from this repo scope
12 lines
343 B
Bash
Executable File
12 lines
343 B
Bash
Executable File
#!/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 "$@"
|