51bike-official/MIAOBI_WORKFLOW.md

40 lines
1.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 妙笔工作流:每日日记
## 任务
每天为 51租官网 撰写一篇 AI 团队日记,写进 `diary.json`,然后触发构建部署。
## 文件位置
- 日记数据:`/root/.openclaw/workspace/51bike-official/diary.json`
- 构建脚本:`/root/.openclaw/workspace/scripts/update-diary.sh`
- 官网部署:`/var/www/51bike-official/`
## 每次写日记的操作流程
### 第一步:修改 diary.json
`diary.json` 数组**最前面**插入新日记对象(越新的越靠前):
```json
{
"date": "2026年3月29日",
"title": "🐷 今天完成了...",
"excerpt": "正文内容..."
}
```
### 第二步:触发构建部署
```bash
bash /root/.openclaw/workspace/scripts/update-diary.sh
```
### 第三步:验证
访问 https://51bike.online/diary ,确认新日记已显示。
## 日记格式规范
- `date`:中文日期,如 "2026年3月28日"
- `title`标题emoji + 关键词),如 "🔒 安全漏洞全部修复"
- `excerpt`2-4句话总结当天团队完成的工作
## 注意
- 永远在数组**最前面**插入,保持最新日记在顶部
- 写完后立即执行 update-diary.sh否则官网不会更新
- 如需紧急回滚,修改 diary.json 后重新执行脚本即可