- 重构根目录CLAUDE.md为项目总览(60行精简版) - 细化backend模块CLAUDE.md为开发指南 - 新增各子模块CLAUDE.md文件: - api/desc/ - API定义模块 - internal/handler/ - 请求处理器 - internal/logic/ - 业务逻辑层 - internal/model/ - 数据模型层 - internal/middleware/ - 中间件层 - internal/svc/ - 服务上下文 - configs/ - 配置目录 - deploy/ - 部署配置 - pkg/ - 公共库 - scripts/ - 工具脚本 - configs/sql/ - SQL脚本 - 修复PostgreSQL SSL配置参数 - 清理旧的backend-old目录 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
32
backend/deploy/CLAUDE.md
Normal file
32
backend/deploy/CLAUDE.md
Normal file
@ -0,0 +1,32 @@
|
||||
# 部署配置目录
|
||||
|
||||
## 📁 目录结构
|
||||
```
|
||||
deploy/
|
||||
├── k8s/ # Kubernetes配置
|
||||
└── systemd/ # Systemd服务配置
|
||||
```
|
||||
|
||||
## 🎯 部署方式选择
|
||||
| 方式 | 目录 | 适用场景 |
|
||||
|---|---|---|
|
||||
| **Docker** | 根目录docker-compose.yml | 本地开发/测试 |
|
||||
| **K8s** | deploy/k8s/ | 云原生部署 |
|
||||
| **Systemd** | deploy/systemd/ | 裸机部署 |
|
||||
|
||||
## 🚀 快速部署
|
||||
```bash
|
||||
# 查看部署文档
|
||||
cd docs/deployment/
|
||||
cat CLAUDE.md
|
||||
|
||||
# 使用Docker部署
|
||||
docker-compose up -d
|
||||
|
||||
# 使用Systemd部署
|
||||
sudo systemctl start photography-api
|
||||
```
|
||||
|
||||
## ⚙️ 配置文件
|
||||
- **k8s/**: Kubernetes YAML文件
|
||||
- **systemd/**: 系统服务配置模板
|
||||
Reference in New Issue
Block a user