docs: 寫下本站實際的部署路徑 - #40
Closed
hoshimoe wants to merge 2 commits into
Closed
Conversation
README 的部署段寫著「直接由 nginx 服務」,而本站不落在任何節點上: hoshi-deploy 的七個節點裡沒有 hoshivel-web,倉庫也沒有任何一步推送產物—— CI 只跑 npm run build,wrangler 不在相依裡,wrangler.jsonc 只宣告 assets.directory 給 Cloudflare 那一側讀。 改成寫出實情,並說明「這個 commit 上線了沒有」由哪裡回答。理由記在 workspace decisions。
註解裡的「Cloudflare Pages」與 hoshi-deploy 清單檔頭是同一句話的兩份複本。 不落在節點上是對的;產品名沒有查證過——wrangler.jsonc 是 assets.directory 的形狀,不是 Pages 的鍵。拿掉查不到的產品名,不換成另一個。
Member
Author
|
這條 PR 的作法是「Cloudflare 那一側查不到,所以把查不到的產品名拿掉」。 兩處這條 PR 判斷錯的地方,#41 都做對了:
workspace 的事項也已經閉環,結論在 Generated by Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
README 的部署段寫著「
dist/靜態檔,直接由 nginx 服務」。本站不落在任何節點上,所以那句話會把下一個人送到錯的地方去找。
事項:workspace
todo/sr-web-與-hoshivel-web-的部署路徑.md(「查清楚並寫下來」)。workspace#126 已經把倉庫這一側的盤查寫進 workspace;
這條 PR 是它沒做的那一半——把結論寫進程式碼倉庫。同一份事項也改了
sr-web與hoshi-deploy。查到的
hoshivel-web.github/workflows/ci.yml)npm ci+npm run build,沒有部署步驟package.json/package-lock.jsonwranglerwrangler.jsoncassets.directory: ./dist,由 Cloudflare 那一側讀結論:產物是
dist/,由 Cloudflare 建置與服務,倉庫這一側沒有任何一步推送產物。README 改成寫出這件事。
原本那句「不得加入 SSR adapter、server/hybrid output、Node runtime 或容器
產物」保留——它仍然成立,而且在靜態託管下更成立。
兩個 commit
.hoshi-build.yaml的註解不再指名「Cloudflare Pages」。那句話在這個倉庫、sr-web 與 hoshi-deploy 的清單檔頭各有一份複本。
不落在節點上是對的;產品名沒有查證過——
wrangler.jsonc是assets.directory的形狀,不是 Pages 專案的pages_build_output_dir。拿掉一個查不到的產品名,和換成另一個產品名是兩件事,前者不需要等
主控臺的答案。
沒有動的
release那份四行說明指的production分支兩個 origin 都沒有(workspace#126 查到的)。修它要先知道今天實際怎麼觸發部署,所以留著,
記在事項的未完成項裡——把一份壞掉的說明換成另一份沒查證的說明不是修好。
連帶的判斷
不納入 inventory。 判準是「由不由節點的 nginx 服務」,答案是否。連帶地
hoshivel.com不進 origin 憑證的 SAN 集合。理由記在 workspacedecisions/infrastructure/兩個公開前端由-Cloudflare-服務.md。驗證
npm ci+npm run build(= 16/16 測試 +astro check+astro build,33 頁)全綠,改完
.hoshi-build.yaml之後重跑一次仍全綠。hoshi check回報「設定沒有問題」。