mirror of
https://github.com/lintsinghua/DeepAudit.git
synced 2026-09-24 23:23:44 +08:00
- Update project name from XCodeReviewer to DeepAudit in CI/CD workflows - Replace Docker image names and release artifact naming conventions - Update GitHub repository references in documentation files - Modify database names and container names in setup instructions - Update contributor badge and issue tracker links - Rename frontend logo file from logo_deepaudit.png - Update environment configuration examples and documentation - Rebrand all references in CONTRIBUTING.md, DISCLAIMER.md, and README.md - Update backend configuration and deployment documentation - Ensure consistent naming across frontend and backend configurations
29 lines
615 B
Bash
Executable File
29 lines
615 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
|
|
|