bind 0.0.0.0
This commit is contained in:
5
run.sh
5
run.sh
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user