Files
full-stack-doc/scripts/start.bat
2025-10-14 20:05:29 +08:00

39 lines
891 B
Batchfile
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.

@echo off
echo 🚀 启动云盘应用开发环境...
REM 检查Docker是否运行
docker info >nul 2>&1
if errorlevel 1 (
echo ❌ Docker未运行请先启动Docker
pause
exit /b 1
)
REM 停止现有容器
echo 🛑 停止现有容器...
docker-compose down
REM 构建并启动服务
echo 🔨 构建并启动服务...
docker-compose up --build -d
REM 等待服务启动
echo ⏳ 等待服务启动...
timeout /t 10 /nobreak >nul
REM 检查服务状态
echo 🔍 检查服务状态...
docker-compose ps
echo.
echo ✅ 开发环境启动完成!
echo 📝 访问地址:
echo 前端应用: http://localhost:3000
echo 后端API: http://localhost:8000
echo API文档: http://localhost:8000/docs
echo 健康检查: http://localhost:8000/api/v1/health
echo.
echo 📊 查看日志: docker-compose logs -f
echo 🛑 停止服务: docker-compose down
echo.
pause