Files
truenas-stacks/home/doris-barbell/bin/run-local.sh
2026-05-21 23:32:10 +00:00

14 lines
292 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT"
if [[ ! -d .venv ]]; then
python3 -m venv .venv
fi
source .venv/bin/activate
pip install -r requirements.txt >/dev/null
exec uvicorn app.main:app --reload --host 0.0.0.0 --port 8093