Allow run_server.sh to accept config path

This commit is contained in:
Jage9
2026-03-08 23:35:34 -04:00
parent 528f05c4e7
commit 11ce019766

View File

@@ -3,6 +3,7 @@ set -euo pipefail
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"
CONFIG_PATH="${1:-config.toml}"
if [[ -f .env ]]; then
set -a
@@ -11,4 +12,4 @@ if [[ -f .env ]]; then
set +a
fi
exec .venv/bin/python main.py --config config.toml
exec .venv/bin/python main.py --config "$CONFIG_PATH"