feat: 初始化考培练系统项目
- 从服务器拉取完整代码 - 按框架规范整理项目结构 - 配置 Drone CI 测试环境部署 - 包含后端(FastAPI)、前端(Vue3)、管理端 技术栈: Vue3 + TypeScript + FastAPI + MySQL
This commit is contained in:
70
知识库/部署完成-快速参考.txt
Normal file
70
知识库/部署完成-快速参考.txt
Normal file
@@ -0,0 +1,70 @@
|
||||
╔════════════════════════════════════════════════════════════════╗
|
||||
║ 🎉 双系统部署完成 - 快速参考 ║
|
||||
╚════════════════════════════════════════════════════════════════╝
|
||||
|
||||
【演示系统】aiedu.ireborn.com.cn
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
✓ 模式:生产模式(无热重载,4个workers)
|
||||
✓ 访问:https://aiedu.ireborn.com.cn
|
||||
✓ 后端:http://localhost:8000
|
||||
✓ 数据库:120.79.247.16:3307 (root/Kaopeilian2025!@#)
|
||||
✓ Redis:localhost:6379
|
||||
|
||||
【开发系统】kpl.ireborn.com.cn
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
✓ 模式:开发模式(支持热重载)
|
||||
✓ 访问:https://kpl.ireborn.com.cn
|
||||
✓ 前端:http://localhost:3002 (Vite HMR)
|
||||
✓ 后端:http://localhost:8001 (uvicorn --reload)
|
||||
✓ API文档:http://localhost:8001/docs
|
||||
✓ 数据库:120.79.247.16:3308 (root/nj861021)
|
||||
✓ Redis:localhost:6380
|
||||
|
||||
【管理命令】
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
# 启动KPL开发系统
|
||||
./start-kpl.sh
|
||||
|
||||
# 停止KPL开发系统
|
||||
./stop-kpl.sh
|
||||
|
||||
# 查看日志
|
||||
docker compose -f docker-compose.kpl.yml logs -f
|
||||
|
||||
# 查看特定服务日志
|
||||
docker compose -f docker-compose.kpl.yml logs -f kpl-backend-dev
|
||||
|
||||
# 重启服务
|
||||
docker compose -f docker-compose.kpl.yml restart kpl-backend-dev
|
||||
|
||||
【验证清单】
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
✅ 演示系统:生产模式,无热重载
|
||||
✅ 开发系统:开发模式,支持热重载
|
||||
✅ 两套系统完全隔离(数据库、Redis、网络)
|
||||
✅ SSL证书配置正确(两个域名)
|
||||
✅ Nginx反向代理正常
|
||||
✅ 所有容器健康运行
|
||||
|
||||
【重要文件】
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
/root/aiedu/docker-compose.yml # 演示系统配置
|
||||
/root/aiedu/docker-compose.kpl.yml # 开发系统配置
|
||||
/root/aiedu/nginx/conf.d/kaopeilian.conf # 演示系统nginx
|
||||
/root/aiedu/nginx/conf.d/kpl.conf # 开发系统nginx
|
||||
/root/aiedu/双系统部署完成报告.md # 详细报告
|
||||
|
||||
【问题排查】
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
# 查看所有容器状态
|
||||
docker ps
|
||||
|
||||
# 测试nginx配置
|
||||
docker exec kaopeilian-nginx nginx -t
|
||||
|
||||
# 重启nginx
|
||||
docker restart kaopeilian-nginx
|
||||
|
||||
# 查看容器日志
|
||||
docker logs <container_name>
|
||||
|
||||
Reference in New Issue
Block a user