joplin快速部署到cloudflare page
目的
快速在新的机器上基于joplin-desktop编写文档及发布到cloudflare。
1.nodejs
1.1配置node环境信息
mac@GaGa ~ % cat .zshrc.d/node.sh
# global node
export NODE_HOME=/Users/mac/.env/node-v22.10.0-darwin-arm64
export PATH=$NODE_HOME/bin:$PATH
1.2配置mirror
# config
npm config set registry https://registry.npmmirror.com/
# verify
npm config get registry
2.joplin-blog
2.1clone joplin-blog
aliyun codeup
2.2install depency
cd joplin-blog && npm install

3.joplin
3.1开启网页剪辑器

3.2修正.joplin-blog.json token
{
"type": "hexo",
"baseUrl": "http://localhost:41184",
"token": "xxxx", # 修正授权令牌
"tag": "blog"
}
3.3配置alias
gaga@GaGa joplin-blog % alias |grep gaga
gaga_deploy='cd ~/vs-code/joplin-blog/ && npm run gen && npm run clean && npm run deploy && npm run push && npm run cleand'