ccccccc / start.bat
cnmksjs's picture
Upload 49 files
24fd742 verified
raw
history blame contribute delete
747 Bytes
@echo off
echo 启动聊天应用...
echo.
echo 检查Docker是否运行...
docker --version >nul 2>&1
if %errorlevel% neq 0 (
echo 错误: Docker未安装或未运行
echo 请先安装Docker Desktop并确保其正在运行
pause
exit /b 1
)
echo Docker已就绪
echo.
echo 构建并启动服务...
docker-compose up --build -d
if %errorlevel% equ 0 (
echo.
echo ✅ 聊天应用启动成功!
echo.
echo 🌐 前端地址: http://localhost:3000
echo 🔧 后端API: http://localhost:5000
echo 📊 MongoDB: localhost:27017
echo.
echo 按任意键打开浏览器...
pause >nul
start http://localhost:3000
) else (
echo.
echo ❌ 启动失败,请检查错误信息
pause
)