From 07e73715ac0d0fa5bf09d922fafb4c6681d3062f Mon Sep 17 00:00:00 2001 From: tongtongstudio Date: Mon, 21 Sep 2026 14:54:20 +0800 Subject: [PATCH] =?UTF-8?q?build(ports):=20=E6=9C=AC=E5=9C=B0=E5=BC=80?= =?UTF-8?q?=E5=8F=91=E6=94=B9=E7=94=A8=207380/7381=20=E9=81=BF=E5=BC=80?= =?UTF-8?q?=E7=AB=AF=E5=8F=A3=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/start-local.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/start-local.ps1 b/scripts/start-local.ps1 index 46df185b2..841a75a34 100644 --- a/scripts/start-local.ps1 +++ b/scripts/start-local.ps1 @@ -103,9 +103,11 @@ $dataDirLiteral = ConvertTo-PowerShellLiteral $dataDir $backendCommand = @" `$ErrorActionPreference = 'Stop' Set-Location -LiteralPath $backendDirLiteral +`$env:CANVAS_BACKEND_ADDR = '127.0.0.1:7381' +`$env:CANVAS_BACKEND_DATA_DIR = $dataDirLiteral `$env:GOCACHE = $(ConvertTo-PowerShellLiteral $goBuildCache) `$env:GOMODCACHE = $(ConvertTo-PowerShellLiteral $goModuleCache) -Write-Host "影策后端:$($env:CANVAS_BACKEND_ADDR)" -ForegroundColor Cyan +Write-Host '影策后端:http://127.0.0.1:7381' -ForegroundColor Cyan go run ./cmd/server "@ @@ -114,6 +116,8 @@ $webCommand = @" Set-Location -LiteralPath $webDirLiteral `$env:VITE_API_PROXY_TARGET = 'http://127.0.0.1:7381' Write-Host '影策前端:http://localhost:7380' -ForegroundColor Cyan +`$env:VITE_API_PROXY_TARGET = 'http://127.0.0.1:7381' +Write-Host '影策前端:http://localhost:7380' -ForegroundColor Cyan bun run dev "@