feat: 优化后端CI/CD配置,使用生产环境PostgreSQL凭据
Some checks failed
部署后端服务 / 🚀 构建并部署 (push) Failing after 41s
部署前端网站 / 🧪 测试和构建 (push) Successful in 2m58s
部署后端服务 / 🔄 回滚部署 (push) Failing after 2s
部署前端网站 / 🚀 部署到生产环境 (push) Failing after 4m13s

- 添加生产环境docker-compose.prod.yml,移除PostgreSQL和Redis容器
- 更新CI/CD工作流使用secrets.POSTGRES_PHOTO_USER和secrets.POSTGRES_PHOTO_PWD
- 修复服务名称从backend改为api以匹配配置
- 自动创建生产环境.env文件并注入正确的数据库凭据

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
xujiang
2025-07-14 18:08:52 +08:00
parent 9c68a49080
commit b35ee56848
4 changed files with 117 additions and 26 deletions

View File

@ -1,6 +1,6 @@
# Photography Portfolio Project - CLAUDE.md
此文件为 Claude Code 在此项目中工作时提供指导。本项目采用模块化结构,每个模块有独立的 CLAUDE.md 文件。
此文件为 Claude Code 在此项目中工作时提供指导。本项目采用模块化结构,每个模块有独立的 CLAUDE.md 文件,所有给我看的提示都要用中文
## 🎯 项目概览