Use goose port (#7089)

Co-authored-by: Douwe Osinga <douwe@squareup.com>
This commit is contained in:
Douwe Osinga 2026-02-09 13:52:16 +01:00 committed by GitHub
parent a9f4cac548
commit 7779457087
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -144,7 +144,6 @@ debug-ui *alpha:
@echo "🚀 Starting goose frontend in external backend mode{{ if alpha == "alpha" { " with alpha features enabled" } else { "" } }}"
cd ui/desktop && \
export GOOSE_EXTERNAL_BACKEND=true && \
export GOOSE_EXTERNAL_PORT=3000 && \
{{ if alpha == "alpha" { "export ALPHA=true &&" } else { "" } }} \
npm install && \
npm run {{ if alpha == "alpha" { "start-alpha-gui" } else { "start-gui" } }}

View file

@ -105,7 +105,8 @@ export const startGoosed = async (options: StartGoosedOptions): Promise<GoosedRe
}
if (process.env.GOOSE_EXTERNAL_BACKEND) {
return connectToExternalBackend(dir, 'http://127.0.0.1:3000');
const port = process.env.GOOSE_PORT || '3000';
return connectToExternalBackend(dir, `http://127.0.0.1:${port}`);
}
let goosedPath = getGoosedBinaryPath(app);