From 5885e309e3784a933a01ad5d67bfc7687f0c038d Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Tue, 4 Jun 2024 20:59:27 +0800 Subject: [PATCH] docs: update dev document --- website/docs/deployment/dev.md | 13 +++++++++++++ .../current/deployment/dev.md | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/website/docs/deployment/dev.md b/website/docs/deployment/dev.md index 006fcd75a53..2f08a0c39aa 100644 --- a/website/docs/deployment/dev.md +++ b/website/docs/deployment/dev.md @@ -28,6 +28,19 @@ docker run -d \ minio/minio server /data --console-address ":9001" ``` +### Example + +Here is a minimal example `.env` which let you can run tailchat in development environment. + +```ini +PORT=11000 +MONGO_URL=mongodb://127.0.0.1:27017/tailchat +REDIS_URL=redis://localhost:6379/ +MINIO_URL=127.0.0.1:19000 +MINIO_USER=tailchat +MINIO_PASS=com.msgbyte.tailchat +``` + ## Node Version Tailchat is develop with `nodejs`, please install nodejs by yourself, here is nodejs official: [https://nodejs.org/](https://nodejs.org/) diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/deployment/dev.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/deployment/dev.md index 0694520c841..7feaa7bda8e 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/deployment/dev.md +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/deployment/dev.md @@ -28,6 +28,19 @@ docker run -d \ minio/minio server /data --console-address ":9001" ``` +### 示例 + +这是一个 ".env" 的最小示例,可让您在开发环境中运行 `tailchat`。 + +```ini +PORT=11000 +MONGO_URL=mongodb://127.0.0.1:27017/tailchat +REDIS_URL=redis://localhost:6379/ +MINIO_URL=127.0.0.1:19000 +MINIO_USER=tailchat +MINIO_PASS=com.msgbyte.tailchat +``` + ## Node Version Tailchat 是使用 `nodejs` 进行开发的,请自行安装nodejs, 这里是nodejs的官方网站: [https://nodejs.org/](https://nodejs.org/)