Files
tianpu-ems/scripts/gitea-migration/README.md
Du Wenbo 02c4698b59 feat: multi-customer architecture + Z-Park support + Gitea migration scripts
Multi-customer config system:
- CUSTOMER env var selects customer (tianpu/zpark)
- customers/tianpu/config.yaml — Tianpu branding, collectors, features
- customers/zpark/config.yaml — Z-Park branding, Sungrow collector
- GET /api/v1/branding endpoint for customer-specific branding
- main.py loads customer config for app title, CORS, logging
- Collector manager filters by customer's enabled collectors

Z-Park (中关村医疗器械园) support:
- Sungrow iSolarCloud API collector (sungrow_collector.py)
- Z-Park device definitions (10 inverters, 8 combiner boxes, 22+ buildings)
- Z-Park TOU pricing config (Beijing 2026 rates)
- Z-Park seed script (seed_zpark.py)

Gitea migration scripts (Mac Studio → labmac3):
- 5 migration scripts + README in scripts/gitea-migration/
- Creates 3-repo structure: ems-core, tp-ems, zpark-ems

Version: v1.0.0

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 16:23:33 +08:00

16 lines
620 B
Markdown
Raw 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.
# Gitea 迁移指南Mac Studio → labmac3
## 执行顺序
1. `01_export_mac_studio.sh` — 在Mac Studio上导出Gitea数据
2. 手动传输:`scp -r ~/gitea-backup duwenbo@192.168.1.77:/opt/`
3. `02_setup_labmac3.sh` — 在labmac3上部署Gitea容器
4. `03_restore_data.sh` — 恢复数据并验证
5. `04_update_developer_remotes.sh` — 各开发者更新Git远程地址
6. `05_create_repos.sh` — 创建3个仓库ems-core, tp-ems, zpark-ems
## 注意事项
- 所有SSH操作需要手动输入密码
- 迁移前确保labmac3已安装Docker
- 迁移完成后保留Mac Studio Gitea 1-2周作为备份