12 lines
282 B
Bash
Executable File
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
|