local-temporal

作者: temporalio

关于针对本地Temporal服务器构建运行UI而非内置CLI开发服务器的说明。当被问及如何启动开发环境时使用,……

npx skills add https://github.com/temporalio/ui --skill local-temporal

Local Temporal Dev Setup

To develop against a local build of the Temporal server, you need two things running in separate terminals.

Terminal 1 — Temporal server (from your local temporal repo)

Navigate to your local clone of the temporalio/temporal repo and start the server:

make start

This builds and starts the server with SQLite in-memory. If you want a specific branch, check it out first:

git checkout <branch-name>
make bins  # safe to run even if already built — outputs "Nothing to be done" and exits cleanly
make start

The server runs gRPC on port 7233 and HTTP on 7243.

Terminal 2 — UI dev server (this repo)

From this repo, use the local-temporal script instead of the default dev script:

pnpm dev:local-temporal

This loads .env.local-temporal which points the UI at the local server instead of spinning up its own.

Why not pnpm dev?

pnpm dev (aliased to pnpm dev:ui-server) starts a bundled Temporal server alongside the UI. pnpm dev:local-temporal skips that and connects to whatever is already running on the configured ports.

Keeping the ui-server in sync with the Temporal server branch

This is critical when working on unreleased features. The ui-server (server/) is a separate Go binary that acts as a grpc-gateway — it decodes HTTP/JSON into proto messages and forwards them to the Temporal server over gRPC. Its proto descriptors are baked in at compile time from its own server/go.mod.

If the Temporal server branch uses a newer go.temporal.io/api version than server/go.mod, the ui-server will reject any new HTTP fields as "unknown field" before the request ever reaches the Temporal server.

When switching to a Temporal branch with API changes:

  1. Check what go.temporal.io/api version the Temporal server branch uses:

    grep "go.temporal.io/api" ~/code/temporal/go.mod
    
  2. Update server/go.mod to match:

    cd server
    go get go.temporal.io/api@<version>
    
  3. Rebuild the ui-server binary:

    go build -o ui-server ./cmd/server
    
  4. Then restart pnpm dev:local-temporal to pick up the new binary.

来自 temporalio 的更多技能

temporal-cloud-setup
temporalio
为用户端到端地设置Temporal Cloud并运行示例工作流。当用户想要设置Temporal Cloud、开始使用……时使用。
official
temporal-developer
temporalio
跨Python、TypeScript、Go、Java、.NET和Ruby开发、调试和管理Temporal应用程序。当用户正在构建工作流、活动或…时使用。
official
temporal-cloud
temporalio
修复 Temporal Cloud 连接、认证和配置问题。当用户遇到登录失败、无法连接到 Cloud、出现 x509/TLS 错误、命名空间或…
official
temporal-observability
temporalio
对Temporal Cloud和自托管部署中的Temporal指标进行采集、收集、查询和告警。涵盖Cloud OpenMetrics端点、SDK指标等……
official
temporal-cloud-setup
temporalio
为用户设置Temporal Cloud并在其上运行示例Workflow,端到端完成工作。当用户想要设置Temporal Cloud、开始使用…时使用。
official
temporal-developer
temporalio
当用户要求“创建Temporal工作流”、“编写Temporal活动”、“调试卡住的工作流”、“修复非确定性错误”等时,应使用此技能。
official
temporal-workflow-design-critic
temporalio
对Temporal工作流设计进行评审、审计或评分,评估其正确性、生产就绪程度及最佳实践合规性。适用于被要求审查Temporal…
official
temporal-developer
temporalio
跨Python、TypeScript、Go、Java和.NET开发、调试和管理Temporal应用程序。当用户正在构建工作流、活动或工作者时使用…
official