Total Pageviews

Thursday, 19 November 2026

小皮面板安装+自动部署网站

 

sudo curl -O https://dl.xp.cn/dl/xp/install.sh && sudo bash install.sh -y --fast-deploy --site-deploy=127.0.0.1,php,8.0,Wordpress --soft-install=nginx:1.24.0 --soft-install=php:8.0 --soft-install=mysql:8.0
 from https://www.xp.cn/download

Wednesday, 18 November 2026

让muse帮我在cloudflare.com平台搭建基于nextjs的静态博客程序anbt

 我用email id: luckypoem@gmail.com+密码登录cloudflare.com平台。

我: Can u build GitHub.com/brightmann/anbt on cloudflare.com?

 

Yes — it's a fork of Amitgajare2/nextjs-blog-template, Next 15.5.4 markdown blog with 3 demo posts. I've converted it to static export and the build passes, 24 pages, committed locally.

What I changed:

  • output: 'export' in next.config
  • /blog search, tag filter and pagination moved client-side — the template did them server-side via searchParams, which can't export. Numbered pager kept, now 5 per page
  • AMP pages, RSS, sitemap and robots fixed for static export
  • Added wrangler.jsonc plus a GitHub Actions workflow so pushes auto-deploy
  • Live URL will be https://anbt.luckypoem.workers.dev

To push and deploy I need two things from you:

  1. A fresh anbt PAT — fine-grained, repo brightmann/anbt, Contents + Workflows (the push includes the workflow file)
  2. A Luckypoem Cloudflare token — Edit Cloudflare Workers template, Account → Workers Scripts → Edit

The Cloudflare token does double duty: first deploy now, and you'll add it as the repo secret CLOUDFLARE_API_TOKEN so pushes auto-deploy. Keep it valid while auto-deploy is on, don't revoke it. You'll also need to enable Actions on the fork — GitHub disables workflows on forks until the owner turns them on.

Branding is still the upstream's (unfilteredmind) — yours to personalize later.

我:in  https://github.com/settings/personal-access-tokens/new ,why after clicking 'add permissions', no reaction?

 

That button doesn't navigate anywhere — it's supposed to open a small dropdown panel right under it, listing permission types (Contents, Workflows, etc.) to pick from. If nothing appears at all, it's usually one of these:

  1. The panel opened but is easy to miss — scroll down a little and look for a search box with a list of permissions under the button.
  2. The page's JavaScript is stuck — hard refresh with Ctrl+Shift+R and try again.
  3. A browser extension is blocking the popover — try a private/incognito window.

If it still won't open, skip the fine-grained form and make a classic token instead: Settings → Developer settings → Personal access tokens → Tokens (classic) → Generate new token, tick repo and workflow. That page is plain checkboxes with no dropdown. Paste that token here and I'll push.

me: classic github token here...

 

Pushed — b68b592 is now on main, confirmed. The deploy workflow triggered too, so Actions is enabled on the fork. It's queued now and will fail at the deploy step because the CLOUDFLARE_API_TOKEN secret isn't set yet — that's expected.

Still need the Luckypoem Cloudflare token (Edit Cloudflare Workers template) for the first deploy. Once you have it, add it as the repo secret CLOUDFLARE_API_TOKEN and pushes will auto-deploy from then on.

You can revoke the PAT once the site is live, in case a fix push is needed first.

me: here is  Cloudflare api token...

 

it's good. I checked it before deploying: it belongs to your Luckypoem account and has the Workers permission. The deploy with it succeeded and the site is live — https://anbt.luckypoem.workers.dev, with /, /blog, a post page, a tag page, RSS and sitemap all returning 200.

One thing left for auto-deploy: add this same token as the repo secret CLOUDFLARE_API_TOKEN in brightmann/anbt. Keep it valid while auto-deploy is on, don't revoke it. The GitHub PAT you pasted earlier can be revoked now — the push is done.

me:  where to add repo secret?

 

Here, in the repo's settings:

On that page: Name CLOUDFLARE_API_TOKEN, Secret paste the cfat_ token, then Add secret. That's Settings → Secrets and variables → Actions → New repository secret, if you go by hand.

Once it's saved, the next push auto-deploys. The workflow run from the last push already failed on the missing secret, so you can also just re-run it from the Actions tab to confirm it works. or visit https://github.com/brightmann/anbt/settings/secrets/actions/new

me:  https://anbt.luckypoem.workers.dev/blog/dream-camelbell ,the video cannot be rendered, pls fix it.

 

Fixed and live. The YouTube iframe was being stripped at build time by remark-html's default sanitizer — same bug cns had. I set { sanitize: false } in utils/blog.ts, pushed it, and the workflow auto-deployed it. The embed code is now in the live page at /blog/dream-camelbell.

One thing: my browser can't play YouTube, so please confirm it actually plays on your end.

Also noticed you added the secret yourself — your posts went live on their own, so the push-to-live loop is working.

得到的博客地址:  https://anbt.luckypoem.workers.dev/

项目地址:

 https://github.com/Amitgajare2/nextjs-blog-template

 https://github.com/Amitgajare2/nextjs-blog-template/issues/4

 GitHub.com/brightmann/anbt

在此处 https://github.com/brightmann/anbt/tree/main/blog 新建源帖dream-camelbell.md ,内容为:

---
title: "梦驼铃"
date: "2026-11-18T21:05"
read_time: "9 minutes"
description: "这是一篇文章"
tags: "misc1, misc2, misc3"
--- 

此处写正文或html code

(详见 https://github.com/brightmann/anbt/blob/main/blog/dream-camelbell.md?plain=1)

 新建源帖后,稍等2分钟,博客网站就会更新。

 

 

河西走廊,何以伟大

 

让instinct帮我搭建基于nextjs+notion的静态博客程序ksnb

 我用email id: brightmann@gmail.com+邮箱验证码登录app.notion.com

  我用github a/c: brightmann@gmail.com授权登录cloudflare.com

 我跟instinct的对话截图如下,共20张图。

 




















 
 得到的博客地址:
 https://ksnb-x9e1.onrender.com/
https://ksnb.pages.dev/
 https://ksnb.brightmann.workers.dev/
 
项目地址:
 https://github.com/kanaru-ssk/notion-blog
 https://github.com/brightmann/ksnb/
 
博客的源帖在app.notion.com里面创建。



Editor.md, 开源的在线 Markdown 编辑器

 https://pandao.github.io/editor.md/

项目地址: https://github.com/pandao/editor.md

英伟达拒绝黄仁勋回归,人类史上最大的泡沫破裂无疑

- 英伟达的市值最高峰时,达到55000亿美元,远超苹果。

习近平机场亲迎特朗普,美总统任内首访深圳,开启全球瞩目APEC峰会

 

-没想到60/70年代的小学生出面欢迎外国领导人的场面又出现了,只是这次小学生换成了大学生(估计是大学生)。