bind 0.0.0.0

This commit is contained in:
2026-09-22 11:09:33 +08:00
parent 2006f7b4a4
commit d9ff32d2bb
3 changed files with 8 additions and 4 deletions

5
run.sh
View File

@@ -1,8 +1,11 @@
#!/bin/zsh
#!/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