From b7ffb52e3cd8ab1a266355f03d725d37c358a221 Mon Sep 17 00:00:00 2001 From: "DESKTOP-72TV0V4\\caoxiaozhu" Date: Mon, 9 Mar 2026 16:08:55 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=88=A0=E9=99=A4=20start-local.ps1?= =?UTF-8?q?=20=E5=90=AF=E5=8A=A8=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- start-local.ps1 | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 start-local.ps1 diff --git a/start-local.ps1 b/start-local.ps1 deleted file mode 100644 index 2b7ed2d..0000000 --- a/start-local.ps1 +++ /dev/null @@ -1,41 +0,0 @@ -# X-Agents 本地启动脚本(Go + 前端) -# 运行方式: .\start-local.ps1 - -$ErrorActionPreference = "Stop" - -Write-Host "======================================" -ForegroundColor Cyan -Write-Host " X-Agents 本地启动 (Go + 前端)" -ForegroundColor Cyan -Write-Host "======================================" -ForegroundColor Cyan - -# 1. 启动数据库 -Write-Host "[启动] 数据库..." -ForegroundColor Green -docker compose -f docker-compose.dev.yml up -d - -# 2. 启动 Go 服务 -Write-Host "[启动] Go API 服务..." -ForegroundColor Green -Start-Process powershell -ArgumentList "-NoExit", "-Command", @" -cd $PWD\server -go run ./cmd/api -"@ -WindowStyle Normal - -# 3. 启动前端 -Write-Host "[启动] 前端服务..." -ForegroundColor Green -if (Test-Path "web/package.json") { - Start-Process powershell -ArgumentList "-NoExit", "-Command", @" -cd $PWD\web -npm run dev -"@ -WindowStyle Normal -} - -Write-Host "" -Write-Host "======================================" -ForegroundColor Green -Write-Host " 服务已启动!" -ForegroundColor Green -Write-Host "======================================" -ForegroundColor Green -Write-Host "" -Write-Host "服务地址:" -ForegroundColor White -Write-Host " - Go API: http://localhost:8080" -ForegroundColor Cyan -Write-Host " - 前端: http://localhost:5173" -ForegroundColor Cyan -Write-Host " - MySQL: localhost:6036" -ForegroundColor Cyan -Write-Host " - Redis: localhost:6037" -ForegroundColor Cyan - -Read-Host | Out-Null