first commit
This commit is contained in:
21
go_backend/start.bat
Normal file
21
go_backend/start.bat
Normal file
@@ -0,0 +1,21 @@
|
||||
@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 mod tidy
|
||||
|
||||
:: 启动服务
|
||||
echo 启动开发环境服务...
|
||||
go run main.go -env=dev
|
||||
|
||||
pause
|
||||
Reference in New Issue
Block a user