Skip to main content

preview

Run this git worktree's code in its own local server at https://slot-local.blot (slots a-e) so the operator can see and click through it while the main stack keeps running. Use when the operator asks to preview, show, or let them try the current changes, or to "set up a preview" for a worktree.

설치로 이동

소스 정보

저장소
blotcms/blot
최근 소스 활동
2026년 9월 21일 19:11
감지된 SKILL.md 언어
영어
스타
1,982
포크
99

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
preview
description
Run this git worktree's code in its own local server at https://slot-local.blot (slots a-e) so the operator can see and click through it while the main stack keeps running. Use when the operator asks to preview, show, or let them try the current changes, or to "set up a preview" for a worktree.
# Preview this worktree `https://local.blot` serves the main checkout, never a worktree. Do not ask the operator to check the branch out; use a preview slot. Design and limits: `scripts/development/worktrees.md`. 1. Work out the page the operator should look at: the docs page, template preview, dashboard page, or brochure page related to the task. Prefer the `https://local.blot/...` URL of that page; `preview.sh` rewrites it to the slot host. 2. From the worktree run: ```bash scripts/development/preview.sh up <url-or-path> ``` If it prints a WARNING that nginx has no preview routing, stop and tell the operator to update the main checkout to current `master` and restart nginx. If `https://local.blot` is down it refuses; ask the operator to run `npm start`. When the command runs inside a sandbox, its health check may be unable to reach an otherwise-running `local.blot`; retry with host access when the environment supports it before concluding that the main stack is offline. 3. Give the operator the printed **Login** URL (one-time, opens the dashboard) and the **Work** URL, as clickable links. Use `blot-node-<slot>` in place of `blot-node-app-1` for any `docker exec`. `local.blot` is the main checkout; `<slot>-local.blot` (for example, `b-local.blot`) is the worktree preview. If Firefox reports that the host cannot be found and mentions `mozilla.cloudflare-dns.com`, Secure DNS / DNS over HTTPS is bypassing the local resolver. Have the operator choose **Always continue for this site** or disable Secure DNS/use the system resolver, then reload the printed URL. 4. Edits to files in this worktree show up on the slot within seconds. Dashboard changes (site settings, template edits) are written to the shared dev database and also show on `local.blot`. 5. Do not use a slot to test sync, the scheduler or Redis-schema changes; only the main stack runs those. SITE-template edits (`app/templates/source`) do rebuild on a slot, but write to the shared dev Redis, so they also show on `local.blot`. 6. When the task is finished or the operator is done, run `scripts/development/preview.sh down` to release the slot (`preview.sh ls` shows who holds each one).
GitHub에서 보기