Files
any-hub/scripts/demo-proxy.sh
2025-11-14 12:11:44 +08:00

14 lines
296 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
MODE="${1:-docker}"
CONFIG="configs/${MODE}.sample.toml"
if [[ ! -f "${CONFIG}" ]]; then
echo "Unknown mode '${MODE}'. Available samples: docker, npm" >&2
exit 1
fi
echo "Starting any-hub with ${CONFIG}"
exec go run ./cmd/any-hub --config "${CONFIG}"