Skip to content

Commit 488250d

Browse files
SkyBird233MingcongBai
authored andcommitted
feat: update README files for Docker related changes
1 parent 3570501 commit 488250d

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ If you need to test the paste page, please set `PASTE_API=http://localhost:2334`
5555
in your environmental variables or the `.env` file. For the deployment of
5656
paste-server-rs, please refer to [website-utils](https://github.com/AOSC-Dev/website-utils).
5757

58+
If you need to test nginx related configuration or test the complete preview in
59+
an independent environment, please use:
60+
```
61+
docker compose up --build
62+
```
63+
5864
Submitting news
5965
---
6066

README.zh-cn.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,12 @@ npm run generate
4040
npm run preview
4141
```
4242

43-
如果您需要测试剪贴板页面,请创建并修改 `.env` 文件或直接设置环境变量 `PASTE_API=http://localhost:2334`。对于 paste-server-rs 的部署请参考 [website-utils](https://github.com/AOSC-Dev/website-utils)
43+
如果您需要测试剪贴板页面,请创建并修改 `.env` 文件或直接设置环境变量 `PASTE_API=http://localhost:2334`。对于 paste-server-rs 的部署请参考 [website-utils](https://github.com/AOSC-Dev/website-utils)
44+
45+
如果您需要测试 nginx 相关配置或在独立环境测试完整预览,请使用:
46+
```
47+
docker compose up --build
48+
```
4449

4550
提交新闻
4651
---

0 commit comments

Comments
 (0)