docs: explain the three sub commands

This commit is contained in:
arkohut 2024-11-18 13:38:55 +08:00
parent 820009ac06
commit f42cd2f315
2 changed files with 18 additions and 2 deletions

View File

@ -257,4 +257,12 @@ To avoid affecting users' daily use, Pensieve has adopted the following optimiza
## Development Guide ## Development Guide
to be continued ### Peeling the First Layer of the Onion
In fact, after Pensieve starts, it runs three programs:
1. `memos serve` starts the web service
2. `memos record` starts the screenshot recording program
3. `memos watch` listens to the image events generated by `memos record` and dynamically submits indexing requests to the server based on actual processing speed
Therefore, if you are a developer or want to see the logs of the entire project running more clearly, you can use these three commands to run each part in the foreground instead of the `memos enable && memos start` command.

View File

@ -260,4 +260,12 @@ Pensieve 默认需要两个计算密集型的任务:
## 开发指南 ## 开发指南
to be continued ### 拨开第一层洋葱
事实上Pensieve 启动之后,会运行三个程序:
1. `memos serve` 启动 Web 服务
2. `memos record` 启动截图记录程序
3. `memos watch` 监听 `memos record` 所生成的图像事件,并结合实际的处理速度动态的向服务器提交索引请求
所以,如果你是开发者,或者希望更清晰的看到整个项目运行的日志,你完全可以使用这三个命令让每个部分在前台运行,去替代 `memos enable && memos start` 命令。