Files
hangbiao/run.sh
2026-09-22 11:09:33 +08:00

12 lines
282 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
if [ ! -x .venv/bin/python ]; then
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
fi
export HOST="${HOST:-0.0.0.0}"
export PORT="${PORT:-8765}"
export RELOAD="${RELOAD:-0}"
exec .venv/bin/python -m app