Files
chat_grid/server/run_server.sh

16 lines
297 B
Bash
Raw Normal View History

#!/usr/bin/env bash
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
# shellcheck disable=SC1091
source .env
set +a
fi
exec .venv/bin/python main.py --config "$CONFIG_PATH"