Files
any-hub/scripts/demo-proxy.sh
Rogee 83bb6623e8
Some checks failed
docker-release / build-and-push (push) Failing after 9m59s
adjust dir structures
2025-11-14 15:02:33 +08:00

14 lines
284 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 . --config "${CONFIG}"