Files
Meshray-Manager/start.bat
T
2026-06-30 15:14:37 +08:00

46 lines
1.1 KiB
Batchfile

@echo off
chcp 65001 >nul
echo ========================================
echo MeshRay 一键启动脚本
echo ========================================
echo.
REM 检查后端是否已编译
if not exist "meshray.exe" (
echo [1/3] 正在编译后端...
go build -o meshray.exe
if errorlevel 1 (
echo ❌ 后端编译失败!
pause
exit /b 1
)
echo ✅ 后端编译完成
) else (
echo [1/2] 后端已编译,跳过
)
REM 检查前端是否已编译(原生静态文件架构,无需构建)
echo [2/2] ✅ 前端为原生静态文件架构,无需构建
echo.
echo [3/3] 正在启动 MeshRay 服务...
echo.
echo ========================================
echo 🚀 MeshRay 启动成功!
echo ========================================
echo.
echo 📱 访问地址:http://localhost:9531
echo.
echo 💡 提示:
echo - 首次启动会生成管理员账户
echo - 按 Ctrl+C 停止服务
echo - 日志文件:data/logs/
echo.
echo ========================================
echo.
REM 启动服务
meshray.exe
pause