Files
lintsinghua eed111c04d chore: reduce logging verbosity and clean up file formatting
- Change logger.info to logger.debug in agent_tasks.py streaming and tree endpoints
- Disable SQLAlchemy echo mode in database session configuration
- Suppress uvicorn access logs and LiteLLM INFO level logging in main application
- Remove LogViewer component and LogsPage from frontend
- Add trailing newlines to multiple backend configuration and model files
- Update frontend routing to remove logs page reference
- Improve application startup logging clarity by filtering verbose third-party logs
2025-12-12 15:50:48 +08:00

29 lines
631 B
Bash
Executable File

#!/bin/bash
# 使用 uv 启动后端服务
set -e
echo "🚀 启动 DeepAudit 后端服务..."
# 检查 uv 是否安装
if ! command -v uv &> /dev/null; then
echo "❌ 未找到 uv,请先安装:"
echo " curl -LsSf https://astral.sh/uv/install.sh | sh"
exit 1
fi
# 同步依赖(如果需要)
if [ ! -d ".venv" ]; then
echo "📦 首次运行,正在安装依赖..."
uv sync
fi
# 运行数据库迁移
echo "🔄 运行数据库迁移..."
uv run alembic upgrade head
# 启动服务
echo "✅ 启动后端服务..."
uv run uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload --no-access-log