Files
biliup-next/runtime/README.md

36 lines
1.2 KiB
Markdown
Raw 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.

# runtime
这个目录用于存放 `biliup-next` 的本地运行资产。
推荐放在这里的内容:
- `cookies.json`
- `upload_config.json`
- `biliup`
- `logs/api.log`
- `logs/worker.log`
- `logs/api.log.1` ~ `logs/api.log.5`
- `logs/worker.log.1` ~ `logs/worker.log.5`
可通过以下命令把当前机器上已有版本复制到这里:
```bash
cd /home/theshy/biliup/biliup-next
./.venv/bin/biliup-next sync-legacy-assets
```
如果你是在新机器首次初始化,`setup.sh` 会在缺失时自动生成:
- `cookies.json` <- `cookies.example.json`
- `upload_config.json` <- `upload_config.example.json`
它们只用于占位能保证项目进入可配置 doctor的状态但不代表上传链路已经可用
`upload_config.json` 同时控制
- 纯享版投稿标题简介动态标签`template`
- 纯享版和完整版置顶评论格式`comment_template`
- 文件名解析规则`filename_patterns`
Docker 部署时这个目录通常会作为 `./runtime:/app/runtime` 挂载到容器内镜像更新不会覆盖已有 `upload_config.json`所以修改评论动态简介格式时应直接改宿主机上的 `runtime/upload_config.json`