Files
ai_wht_wechat/go_backend/start_prod.bat
2025-12-19 22:36:48 +08:00

28 lines
446 B
Batchfile
Raw Permalink 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
chcp 65001 >nul
echo 启动AI小红书后端服务生产环境...
:: 检查go环境
where go >nul 2>nul
if %ERRORLEVEL% neq 0 (
echo 错误: 未检测到Go环境请先安装Go
pause
exit /b 1
)
:: 编译项目
echo 编译项目...
go build -o ai_xhs.exe main.go
if %ERRORLEVEL% neq 0 (
echo 编译失败
pause
exit /b 1
)
:: 启动服务
echo 启动生产环境服务...
ai_xhs.exe -env=prod
pause