Files
xiaoxia-saas/start-api.ps1
T

19 lines
609 B
PowerShell

# 小虾 SaaS - API 服务启动脚本
Write-Host "=== 启动小虾 SaaS API 服务 ===" -ForegroundColor Green
# 设置 Python 路径
$env:PYTHONPATH = "F:\openclaw-saas"
Write-Host "PYTHONPATH: $env:PYTHONPATH" -ForegroundColor Cyan
# 切换到 API 目录
Set-Location F:\openclaw-saas\apps\api
# 启动 API 服务
Write-Host "`n启动 FastAPI 服务..." -ForegroundColor Yellow
Write-Host "访问地址: http://localhost:8000" -ForegroundColor Cyan
Write-Host "API 文档: http://localhost:8000/docs" -ForegroundColor Cyan
Write-Host "`n按 Ctrl+C 停止服务`n" -ForegroundColor Gray
python main.py