86af064ca3
- 修复 Windows 控制台中文编码乱码 - 新增 ExecutableFinder 动态查找 Node/Maven/npm 可执行文件路径 - 重构 ProcessManager.start 使用动态路径替代硬编码 - 修复 _start_all 依赖等待逻辑,避免误判未就绪服务 - restart 命令支持 all 参数(默认重启所有服务) - clean 命令增强:Node 清理 node_modules/dist/.vite,Java 清理 target - PID 严格验证:检查进程 cwd 是否匹配服务目录 - 进度条显示稳定:百分比变化 >= 10% 才刷新 - mini-program 补充 log_file 配置 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
60 lines
1.4 KiB
YAML
60 lines
1.4 KiB
YAML
# 情绪博物馆 - 服务管理配置文件
|
|
# Emotion Museum - Service Management Configuration
|
|
|
|
services:
|
|
backend:
|
|
name: "后端服务"
|
|
dir: "backend-single"
|
|
type: "java"
|
|
port: 19089
|
|
health_check_path: "/actuator/health"
|
|
start_cmd: "mvn spring-boot:run"
|
|
build_cmd: "mvn clean package -DskipTests"
|
|
build_check: "target/emotion-single-1.0.0.jar"
|
|
lock_file: "pom.xml"
|
|
pid_file: ".pid"
|
|
log_file: "logs/emotion-single-local.log"
|
|
depends_on: []
|
|
env:
|
|
SPRING_PROFILES_ACTIVE: "local"
|
|
|
|
web:
|
|
name: "用户前端"
|
|
dir: "web"
|
|
type: "node"
|
|
port: 5173
|
|
health_check_path: "/"
|
|
start_cmd: "npm run dev"
|
|
install_cmd: "npm install"
|
|
install_check: "node_modules"
|
|
lock_file: "package-lock.json"
|
|
pid_file: ".pid"
|
|
depends_on: ["backend"]
|
|
|
|
web-admin:
|
|
name: "管理后台"
|
|
dir: "web-admin"
|
|
type: "node"
|
|
port: 5174
|
|
health_check_path: "/"
|
|
start_cmd: "npm run dev"
|
|
install_cmd: "npm install"
|
|
install_check: "node_modules"
|
|
lock_file: "package-lock.json"
|
|
pid_file: ".pid"
|
|
depends_on: ["backend"]
|
|
|
|
mini-program:
|
|
name: "小程序 H5"
|
|
dir: "mini-program"
|
|
type: "node"
|
|
port: 5175
|
|
health_check_path: "/"
|
|
start_cmd: "npm run dev:h5"
|
|
install_cmd: "npm install"
|
|
install_check: "node_modules"
|
|
lock_file: "package-lock.json"
|
|
pid_file: ".pid"
|
|
log_file: "logs/dev-h5.log"
|
|
depends_on: ["backend"]
|