iop/scripts/dev/edge.sh

10 lines
322 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
REPO_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
CONFIG_FILE="${IOP_EDGE_CONFIG:-$REPO_ROOT/configs/edge.yaml}"
cd "$REPO_ROOT"
echo "[edge] config=$CONFIG_FILE"
exec go run ./apps/edge/cmd/edge console --config "$CONFIG_FILE"