返回 JoyAI-Echo
start_server.sh
根目录 / echo_longvideo / scripts / start_server.sh
1 #!/usr/bin/env bash
2 set -euo pipefail
3
4 repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
5 cd "$repo_root"
6
7 if ! command -v uv >/dev/null 2>&1; then
8 echo "[Echo Server] uv was not found. Install uv and reopen the shell." >&2
9 exit 1
10 fi
11
12 if [[ ! -f configs/server.consumer.yaml ]]; then
13 echo "[Echo Server] Missing configs/server.consumer.yaml" >&2
14 exit 1
15 fi
16
17 echo "[Echo Server] Starting on the configured host and port..."
18 exec uv run python server.py --config configs/server.consumer.yaml "$@"
19
19 lines BASH