Files
hzhub/start-all.sh
大壮 226f119607 feat: 完善员工门户功能及ERP集成
主要修改:
- 完善员工门户CRM模块(经销商、线索管理)
- 添加ERP客户选择器集成
- 优化登录认证和租户选择
- 添加超时配置、企业微信集成等文档
- 更新docker-compose配置
- 将.pid临时文件加入gitignore

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-22 09:46:54 +00:00

75 lines
1.9 KiB
Bash
Executable File
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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.
#!/bin/bash
# 一键启动所有 HZHub 服务
# JWT 密钥(必须 >= 32 字节 / 256 bits所有后端服务共享
export JWT_SECRET="${JWT_SECRET:-Om1fovSeKIA1oLIoHdDPMF-trbqbrPQoDS3H4u1xoRY}"
echo "========================================="
echo " 启动所有 HZHub 服务"
echo "========================================="
# 启动 AI 服务
echo ""
echo "1⃣ 启动 AI 服务 (hzhub-ai)..."
cd /data/hzhub/hzhub-ai
./start.sh
# 启动系统服务
echo ""
echo "2⃣ 启动系统服务 (hzhub-system)..."
cd /data/hzhub/hzhub-system
./start.sh
# 启动 Gateway
echo ""
echo "3⃣ 启动 API 网关 (hzhub-gateway)..."
cd /data/hzhub/hzhub-gateway
./start.sh
# 启动 ERP 服务
echo ""
echo "4⃣ 启动 ERP 服务 (hzhub-erp)..."
cd /data/hzhub/hzhub-erp
./start.sh
# 等待后端服务启动
echo ""
echo "⏳ 等待后端服务启动 (10秒)..."
sleep 10
# 启动管理后台
echo ""
echo "5⃣ 启动管理后台 (hzhub-admin)..."
cd /data/hzhub/hzhub-admin
./start.sh
# 启动员工门户
echo ""
echo "6⃣ 启动员工门户 (hzhub-portal-employee)..."
cd /data/hzhub/hzhub-portal-employee
./start.sh
# 启动经销商门户
#echo ""
#echo "7⃣ 启动经销商门户 (hzhub-portal-dealer)..."
#cd /data/hzhub/hzhub-portal-dealer
#./start.sh
echo ""
echo "========================================="
echo " ✅ 所有服务启动完成"
echo "========================================="
echo ""
echo "服务地址:"
echo " API网关: http://localhost:8080 (统一入口)"
echo " AI服务: http://localhost:6039 (直连)"
echo " 系统服务: http://localhost:8083 (认证/系统/工作流/代码生成)"
echo " ERP服务: http://localhost:8082 (直连)"
echo " 管理后台: http://localhost:5666"
echo " 员工门户: http://localhost:5137"
#echo " 经销商门户: http://localhost:5138"
echo ""
echo "查看服务状态:"
echo " ./status-all.sh"
echo ""