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

19 lines
323 B
Bash
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.

#!/bin/bash
echo "启动AI小红书后端服务开发环境..."
# 检查go环境
if ! command -v go &> /dev/null
then
echo "错误: 未检测到Go环境请先安装Go"
exit 1
fi
# 下载依赖
echo "下载依赖..."
go mod tidy
# 启动服务
echo "启动开发环境服务..."
go run main.go -env=dev