Files
Blizzard abe543d4b2 docs: document Linux and BaoTa deployment workflow
Add a root README and a current deployment guide covering local setup, versioned Linux packaging, manual BaoTa updates with backups and rollback, production verification, and miniapp API_BASE configuration.
2026-11-04 21:32:39 +08:00

24 lines
1.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 我们 past
微信小程序、Go 后端与管理端共用此仓库。Go 模块位于 `past-go/`,不是仓库根目录;管理端构建后嵌入后端二进制。
| 目录 | 用途 |
| --- | --- |
| `weapp/` | 微信小程序 |
| `past-go/` | Go 后端、配置模板和 Makefile |
| `past-go/web/admin/` | React 管理端 |
| `deploy/linux/` | 当前生产 systemd 服务和 Nginx 配置参考 |
## 开发与部署
**协同开发请先阅读 [Linux / 宝塔部署文档](past-go/deploy/README.md)**:包含首次准备、本地开发、打包上传、备份更新、线上验证和回滚命令。
- [后端配置与业务说明](past-go/README.md)
- [Windows 部署说明](past-go/deploy/windows/README.md)(当前生产环境使用 Linux)
生产域名:`https://we.sundynix.cn`;管理端:`https://we.sundynix.cn/backend/admin/login`。
小程序 `weapp/config/env.js` 只导出 `API_BASE`,不自动判断环境。开发时手动填本机或局域网地址,上传体验版、正式版前改成 `https://we.sundynix.cn/api`。
真实 `config.yaml`、`config.dev.yaml` 和支付证书不会随 Git 下发。新成员需向项目负责人领取配置与证书,或从示例文件配置自己的开发环境;现有服务器更新时保留线上配置、证书及数据。