Repository navigation
Structure
pollybird edited this page Sep 11, 2026
·
3 revisions
`zhycms/
├── app/
│ ├── admin/ # 后台模块
│ ├── frontend/ # 前台模块
│ │ └── templates/themes/ # 主题目录(6 套内置主题)
│ ├── models/ # 数据模型
│ ├── translations/ # 核心国际化翻译文件
│ ├── utils/ # 工具模块(上传、通知、存储、主题等)
│ ├── static/ # 静态资源
│ ├── __init__.py # 应用工厂
│ ├── config.py # 配置
│ ├── plugin_system.py # 插件运行时
│ ├── plugin_api.py # PluginBase 基类
│ └── extensions.py # 扩展初始化
├── plugins/ # 插件目录(8 个官方内置)
├── migrations/ # Alembic 迁移脚本
├── docker/ # Docker 部署辅助
├── instance/ # 实例数据(数据库、配置、备份等)
├── requirements.txt
├── Dockerfile
├── docker-compose.yml # 通用编排(--profile,本地构建)
├── docker-compose.mysql.yml # MySQL 独立编排(拉取 pollybird/zhycms:mysql)
├── docker-compose.postgresql.yml # PostgreSQL 独立编排(拉取 pollybird/zhycms:postgresql)
├── docker/
│ ├── install.sh # 一键安装脚本
│ ├── uninstall.sh # 卸载脚本
│ ├── entrypoint.sh # 容器入口
│ └── .env.example # 环境变量模板
├── wsgi.py / run.py
└── wiki.html # 本手册`
instance/存放数据库、配置、备份等敏感数据,已在.gitignore中排除,切勿提交到版本库。