Files
wwjcloud/start-prod.sh
wanwu b1e16be25d feat: 重构多语言模块,符合NestJS规范
- 重构LanguageUtils为LanguageService,实现ILanguageService接口
- 移除自定义验证管道和装饰器,使用标准NestJS验证
- 集成框架ValidatorService进行业务验证
- 简化目录结构,移除不必要的子目录
- 支持模块化语言包加载(common、user、order等)
- 统一API响应格式(code、msg、data、timestamp)
- 添加ValidationExceptionFilter处理多语言验证错误
- 完善多语言示例和文档
2025-10-06 10:56:59 +08:00

39 lines
1.5 KiB
Bash
Executable File
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.
#!/bin/bash
echo "╔════════════════════════════════════════════════════════════════════════════╗"
echo "║ 🚀 启动生产环境完整Docker部署 ║"
echo "╚════════════════════════════════════════════════════════════════════════════╝"
echo ""
# 步骤1: 构建并启动所有服务
echo "📦 步骤1: 构建并启动所有服务..."
docker-compose up -d --build
echo ""
echo "⏳ 等待所有服务启动..."
sleep 30
# 步骤2: 检查服务状态
echo ""
echo "📊 服务状态:"
docker-compose ps
echo ""
echo "📊 健康检查:"
docker-compose exec nestjs-backend node -e "require('http').get('http://localhost:3000/health', (r) => {console.log('NestJS:', r.statusCode === 200 ? '✅ 健康' : '❌ 异常')})" 2>/dev/null || echo "NestJS: ⏳ 等待启动..."
echo ""
echo "✅ 所有服务已启动!"
echo ""
echo "🌐 访问地址:"
echo " Admin管理面板: http://localhost"
echo " NestJS API: http://localhost:3000"
echo " MySQL: localhost:3306"
echo " Redis: localhost:6379"
echo ""
echo "📋 常用命令:"
echo " 查看日志: docker-compose logs -f"
echo " 停止服务: docker-compose down"
echo " 重启服务: docker-compose restart"
echo ""