部署寫成實際的那一個:Cloudflare Pages,從 main - #41
Merged
Merged
Conversation
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.
## 部署原本寫著dist/「直接由 nginx 服務」。那是錯的,而且錯得會主動誤導:nginx 把人推向節點——去查 hoshi-deploy 的 inventory、查 vhost、查 origin
憑證的 SAN——而正確答案是那條路上從頭到尾沒有 nginx。
實際的形狀:純靜態站,推上
main之後由 Cloudflare Pages 自己建置並上線。刪掉
release那份四行的 crib 教人推
production分支:production早就不存在了(git ls-remote --heads origin只有main)。最初確實設過那條分支,
release是為它加的;後來發現沒必要,分支撤掉、檔案留著。照著它做的第一行就會失敗。
其餘
wrangler.jsonc是 Pages 的建置/部署步驟在讀的,本機用不到——所以 wrangler 不在 dependencies、也沒有
deployscript。檔頭加了註解。hoshivel.com——那是對的,不是漏掉。Pages 服務的是純靜態檔。
驗證:
hoshi test通過。