Use local server .env via wrapper startup script

This commit is contained in:
Jage9
2026-02-24 23:02:53 -05:00
parent 2fec127b1c
commit 4fbae1dcc2
5 changed files with 23 additions and 40 deletions

14
server/run_server.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"
if [[ -f .env ]]; then
set -a
# shellcheck disable=SC1091
source .env
set +a
fi
exec .venv/bin/python main.py --config config.toml