Commit Graph

3 Commits

Author SHA1 Message Date
maoshen
89e8589e87 feat: 支持从环境变量配置数据库
- 添加 os 模块导入
- DEBUG 和 ALLOWED_HOSTS 从环境变量读取
- DATABASE_URL 支持 PostgreSQL 和 SQLite
- 默认使用 SQLite 便于部署
2026-04-12 22:06:04 +00:00
maoshen
3a01b98860 fix: 添加 psycopg2-binary 和 gunicorn 到依赖
- 添加 PostgreSQL 驱动 psycopg2-binary
- 添加 gunicorn 生产服务器
2026-04-12 21:59:43 +00:00
maoshen
1716b3ec98 scripts: 添加 rsync 部署脚本
- 通过 rsync 同步代码到云服务器
- 解决云服务器无法访问内网 Git 服务器的问题
- 包含完整的部署流程
2026-04-12 21:58:52 +00:00