Files
goalfylearning-admin/start_sso.sh

26 lines
610 B
Bash

#!/bin/bash
# SSO功能启动脚本
echo "=== 启动 goalfymax-admin SSO 服务 ==="
# 检查配置文件
if [ ! -f "etc/config.yaml" ]; then
echo "错误: 配置文件 etc/config.yaml 不存在"
exit 1
fi
echo "配置文件检查通过"
# 检查数据库连接
echo "检查数据库连接..."
# 这里可以添加数据库连接检查逻辑
# 启动服务
echo "启动服务..."
go run cmd/server/main.go -config etc/config.yaml
echo "服务已启动,访问地址: http://localhost:8084"
echo "SSO API 文档: http://localhost:8084/api/sso/"
echo "健康检查: http://localhost:8084/health"