start.sh 267 B

1234567891011121314
  1. #!/bin/bash
  2. echo "🚀 启动 Ai Server..."
  3. if [ ! -f "./.venv/bin/activate" ]; then
  4. echo "❌ 未找到虚拟环境: ./.venv/bin/activate"
  5. exit 1
  6. fi
  7. # 激活虚拟环境
  8. source ./.venv/bin/activate
  9. # 运行主程序
  10. uvicorn app.main:app --reload --port 8000