first commit

This commit is contained in:
0Xiao0
2026-05-21 10:14:05 +08:00
commit 597e93e495
9 changed files with 1422 additions and 0 deletions

16
start_server.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
# 启动 Token Server
set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$DIR"
# 检查 .env 文件是否存在
if [ ! -f ".env" ]; then
echo "警告: 未找到 .env 文件,请确保环境变量(LIVEKIT_API_KEY, LIVEKIT_API_SECRET)已经正确配置!"
echo "参考示例cp .env.example .env"
fi
echo "正在通过 uv 启动 FastAPI 服务..."
# 使用 uv run 来运行,这样可以确保使用正确的隔离环境并自动解析依赖
uv run uvicorn server:app --host 0.0.0.0 --port 8000