diff options
| author | haoyuren <13851610112@163.com> | 2026-03-31 23:27:05 -0500 |
|---|---|---|
| committer | haoyuren <13851610112@163.com> | 2026-03-31 23:27:05 -0500 |
| commit | 8ebc6c53077a4826109f2ceb4c5625efe6b6522e (patch) | |
| tree | 09cfcc52bd39b563859eaa3aa4787288e47edf89 /start_broker.sh | |
Claude Bridge Server - broker, dispatcher, multi-user support
Diffstat (limited to 'start_broker.sh')
| -rwxr-xr-x | start_broker.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/start_broker.sh b/start_broker.sh new file mode 100755 index 0000000..88fbe04 --- /dev/null +++ b/start_broker.sh @@ -0,0 +1,15 @@ +#!/bin/bash +# 启动 Broker 服务器 +set -euo pipefail +cd "$(dirname "$0")" + +if [ ! -f .env ]; then + echo "ERROR: .env 文件不存在,请复制 .env.example 并填写配置" + echo " cp .env.example .env && vim .env" + exit 1 +fi + +set -a; source .env; set +a + +echo "[Broker] Starting on port 8000..." +exec uvicorn broker:app --host 0.0.0.0 --port 8000 |
