fix: 调试发布run
This commit is contained in:
@@ -6,7 +6,8 @@ The local debug workspace runs the real platform API, run worker, platform_web c
|
||||
|
||||
- Platform listens on `http://127.0.0.1:18080` by default.
|
||||
- platform_web listens on `http://127.0.0.1:5173` by default and proxies `/api/v1` plus `/healthz` to platform.
|
||||
- Run worker is loaded from `RUN_REPO_DIR`, defaulting to the ignored nested `./run` checkout, and registers as `run-local-debug`.
|
||||
- Run editable source is loaded from `RUN_SOURCE_DIR` / legacy `RUN_REPO_DIR`, defaulting to the ignored nested `./run` checkout.
|
||||
- Run source is snapshotted into `.local-debug/run/build-buckets/source/current`, then the local bootstrap worker is built into `.local-debug/run/build-buckets/bootstrap/bin/run` and registers as `run-local-debug`.
|
||||
- Disposable state lives under `.local-debug/`.
|
||||
- Logs live under `.local-debug/logs/`.
|
||||
- PIDs live under `.local-debug/pids/`.
|
||||
@@ -60,7 +61,11 @@ Key platform variables:
|
||||
|
||||
Key run variables:
|
||||
|
||||
- `RUN_REPO_DIR=./run`
|
||||
- `RUN_SOURCE_DIR=./run`
|
||||
- `RUN_REPO_DIR=./run` as a legacy alias for `RUN_SOURCE_DIR`
|
||||
- `RUN_BUILD_BUCKET_ROOT=.local-debug/run/build-buckets`
|
||||
- `RUN_BUILD_SOURCE_ROOT=.local-debug/run/build-buckets/source/current`
|
||||
- `RUN_BOOTSTRAP_BIN=.local-debug/run/build-buckets/bootstrap/bin/run`
|
||||
- `RUN_MODE=worker`
|
||||
- `RUN_PLATFORM_URL=http://127.0.0.1:18080`
|
||||
- `RUN_ENDPOINT_ID=run-local-debug`
|
||||
@@ -96,6 +101,9 @@ The smoke command verifies:
|
||||
- dev plugin manifest validation and registration through `POST /api/v1/game-plugins/register-manifest`.
|
||||
- run endpoint heartbeat through `GET /api/v1/run/endpoints?status=online`.
|
||||
- server lifecycle fixture setup through `POST /api/v1/server-instances/workflows/create`.
|
||||
- SCUM run package generation through Platform-dispatched `distribution.build` when the endpoint advertises build capability.
|
||||
- latest run download opening through `POST /api/v1/server-instances/{id}/run/download`.
|
||||
- generated artifact content reads through `/api/v1/artifacts/{id}/content` with chunk, total size, and checksum verification.
|
||||
- job, log stream, artifact, marketplace, and server list references.
|
||||
- `PLATFORM_API_PROXY` and `VITE_PLATFORM_API_BASE_URL=/api/v1`.
|
||||
- `VITE_ENABLE_LOCAL_AUTH_FALLBACK=false`.
|
||||
@@ -173,7 +181,9 @@ The start script wraps these commands with the local debug environment:
|
||||
|
||||
```bash
|
||||
(cd platform && go run ./cmd/platform)
|
||||
(cd "${RUN_REPO_DIR:-./run}" && go run ./cmd/run)
|
||||
source scripts/local-debug-env.sh
|
||||
local_debug_build_bootstrap_run
|
||||
"$RUN_BOOTSTRAP_BIN"
|
||||
npm --prefix platform_web run dev -- --port 5173
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user