Initial commit: iOS Build Server
- FastAPI backend with build queue, WebSocket logs, task management - Vue 3 frontend with build/config/history views - Xcode project build automation with IPA export - Fix: initialize build_dir before try block to ensure cleanup on early failure
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
# === iOS 自动打包服务配置 ===
|
||||
# 复制此文件为 .env 并修改为实际值
|
||||
|
||||
# ---- 项目路径 ----
|
||||
# iOS 源码项目根目录(也用于 AutoPacking 脚本路径)
|
||||
PROJECT_ROOT=/Users/shen/Work/Code/Readoor
|
||||
|
||||
# 打包输出基础目录(每次打包会在此目录下创建子目录)
|
||||
BUILD_BASE_DIR=/Users/shen/Documents
|
||||
|
||||
# ---- 分支源码管理 ----
|
||||
# 分支源码根目录,每个分支一个子目录(如 ReadoorBranches/main、ReadoorBranches/dev)
|
||||
GIT_SOURCE_BASE=/Users/shen/Work/Code/ReadoorBranches
|
||||
|
||||
# Git 远程仓库地址,分支目录不存在时自动 clone
|
||||
GIT_REMOTE_URL=git@github.com:your-org/readoor.git
|
||||
|
||||
# ---- 服务端口 ----
|
||||
BACKEND_PORT=8000
|
||||
|
||||
# ---- 管理员账号 ----
|
||||
ADMIN_USERNAME=admin
|
||||
ADMIN_PASSWORD=admin123
|
||||
|
||||
# ---- 并发与清理 ----
|
||||
# 最大并行打包数
|
||||
MAX_CONCURRENT_BUILDS=2
|
||||
|
||||
# 打包目录保留时间(小时)
|
||||
BUILD_DIR_RETENTION_HOURS=24
|
||||
|
||||
# ---- Watchdog 健康监测 ----
|
||||
# 健康检查间隔(秒)
|
||||
WATCHDOG_INTERVAL=30
|
||||
|
||||
# 健康检查 HTTP 超时(秒)
|
||||
WATCHDOG_TIMEOUT=10
|
||||
|
||||
# 连续重启次数上限,超过后进入冷却
|
||||
MAX_RESTART_ATTEMPTS=3
|
||||
|
||||
# 冷却时间(秒),连续重启超限后等待多久再重试
|
||||
COOLDOWN_SECONDS=300
|
||||
Reference in New Issue
Block a user