feat: 初始化考培练系统项目

- 从服务器拉取完整代码
- 按框架规范整理项目结构
- 配置 Drone CI 测试环境部署
- 包含后端(FastAPI)、前端(Vue3)、管理端

技术栈: Vue3 + TypeScript + FastAPI + MySQL
This commit is contained in:
111
2026-01-24 19:33:28 +08:00
commit 998211c483
1197 changed files with 228429 additions and 0 deletions

50
deploy/scripts/stop-dev.sh Executable file
View File

@@ -0,0 +1,50 @@
#!/bin/bash
# 考培练系统开发环境停止脚本
set -e
# 颜色定义
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
NC='\033[0m' # No Color
log_info() {
echo -e "${BLUE}[INFO]${NC} $1"
}
log_success() {
echo -e "${GREEN}[SUCCESS]${NC} $1"
}
log_warning() {
echo -e "${YELLOW}[WARNING]${NC} $1"
}
main() {
echo "🛑 停止考培练系统开发环境"
echo "=========================="
log_info "停止所有开发服务..."
docker-compose -f docker-compose.dev.yml down --remove-orphans
# 可选:清理数据卷(谨慎使用)
if [[ "$1" == "--clean-data" ]]; then
log_warning "清理开发数据卷..."
docker volume rm kaopeilian-mysql-dev-data kaopeilian-redis-dev-data 2>/dev/null || true
log_success "数据卷已清理"
fi
# 可选:清理镜像
if [[ "$1" == "--clean-all" ]]; then
log_warning "清理开发镜像..."
docker images --filter "reference=*kaopeilian*dev*" -q | xargs -r docker rmi -f
log_success "开发镜像已清理"
fi
log_success "✅ 开发环境已停止"
}
main "$@"