hy-app-monitor/scripts/run_foreground.sh

10 lines
225 B
Bash

#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
# shellcheck disable=SC1091
source "$SCRIPT_DIR/common.sh"
export_service_env gateway
exec "$PYTHON_BIN" "$ROOT_DIR/server.py"