feat: 完善部署脚本系统,添加所有微服务模块
🚀 新增服务: - emotion-explore (端口19005) - 探索服务 - emotion-reward (端口19006) - 奖励服务 - emotion-stats (端口19009) - 统计服务 🔧 脚本优化: - 修复所有部署脚本的SSH连接格式为严格的 ssh 'root@47.111.10.27' - 重新创建所有单服务部署脚本,确保语法正确 - 统一所有脚本的模板和格式 - 修复端口冲突问题 (emotion-stats从19008改为19009) ✅ 完整服务列表: - emotion-gateway:19000 - API网关 - emotion-user:19001 - 用户服务 - emotion-ai:19002 - AI聊天服务 - emotion-record:19003 - 记录服务 - emotion-growth:19004 - 成长服务 - emotion-explore:19005 - 探索服务 - emotion-reward:19006 - 奖励服务 - emotion-websocket:19007 - WebSocket服务 - emotion-auth:19008 - 认证服务 - emotion-stats:19009 - 统计服务 🔐 安全配置: - 所有脚本使用SSH公钥认证 - 统一的MySQL密码配置: EmotionMuseum2025*# - 统一的Nacos密码配置: Peanut2817*# ✨ 测试验证: - 所有脚本语法检查通过 ✅ - SSH连接测试成功 ✅ - 远程服务器Docker环境正常 ✅ - 脚本执行权限设置完成 ✅
This commit is contained in:
@@ -51,8 +51,11 @@ SERVICES=(
|
||||
"emotion-ai:19002"
|
||||
"emotion-record:19003"
|
||||
"emotion-growth:19004"
|
||||
"emotion-explore:19005"
|
||||
"emotion-reward:19006"
|
||||
"emotion-websocket:19007"
|
||||
"emotion-auth:19008"
|
||||
"emotion-stats:19009"
|
||||
)
|
||||
|
||||
# 部署状态跟踪
|
||||
@@ -182,7 +185,7 @@ deploy_service() {
|
||||
-e REDIS_DATABASE=0 \\
|
||||
-e NACOS_SERVER_ADDR=47.111.10.27:8848 \\
|
||||
-e NACOS_USERNAME=nacos \\
|
||||
-e NACOS_PASSWORD=Peanut2817*# \\
|
||||
-e NACOS_PASSWORD='Peanut2817*#' \\
|
||||
--restart unless-stopped \\
|
||||
${PROJECT_NAME}/${service_name}:latest
|
||||
"
|
||||
@@ -196,7 +199,7 @@ deploy_service() {
|
||||
log_success "服务 $service_name 启动成功"
|
||||
|
||||
# 显示容器日志
|
||||
log_info "显示服务日志 (最后10行): $service_name"
|
||||
log_info "显示服务日志 最后10行: $service_name"
|
||||
ssh 'root@47.111.10.27' "docker logs --tail 10 ${service_name}" 2>/dev/null || true
|
||||
|
||||
# 记录成功状态
|
||||
|
||||
Reference in New Issue
Block a user