#!/usr/bin/env bash
set -euo pipefail

SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
WORKLOAD_DIR="$SCRIPT_DIR/../01.c-builtin-and-help-lab"
export CNCF_SERVER_PORT="${CNCF_SERVER_PORT:-19614}"

cd "$WORKLOAD_DIR"
exec cncf server --port "$CNCF_SERVER_PORT" --restart --force-existing --textus.config.file "$SCRIPT_DIR/.textus.conf"
