mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-01-22 06:43:17 +08:00
* feat:提交前端代码 * feat:提交logo样式切换 * feat:替换avatar、部分位置icon、chatchat相关说明、git链接、Wiki链接、关于、设置、反馈与建议等功能,关闭lobehub自检更新功能 * fix:移除多余代码 --------- Co-authored-by: liunux4odoo <41217877+liunux4odoo@users.noreply.github.com>
59 lines
2.3 KiB
Markdown
59 lines
2.3 KiB
Markdown
# Upstream Sync
|
|
|
|
English | [简体中文](https://github.com/lobehub/lobe-chat/wiki/Upstream-Sync.zh-CN)
|
|
|
|
## `A` Vercel / Zeabur Deployment
|
|
|
|
If you have deployed your own project following the one-click deployment steps in the README, you might encounter constant prompts indicating "updates available". This is because Vercel defaults to creating a new project instead of forking this one, resulting in an inability to accurately detect updates. We suggest you redeploy using the following steps:
|
|
|
|
- Remove the original repository;
|
|
- Use the <kbd>Fork</kbd> button at the top right corner of the page to fork this project;
|
|
- Re-select and deploy on `Vercel`.
|
|
|
|
## Enabling Automatic Updates
|
|
|
|
> \[!NOTE]
|
|
>
|
|
> If you encounter an error executing Upstream Sync, manually Sync Fork once
|
|
|
|
Once you have forked the project, due to Github restrictions, you will need to manually enable Workflows on the Actions page of your forked project and activate the Upstream Sync Action. Once enabled, you can set up hourly automatic updates.
|
|
|
|

|
|

|
|
|
|
## `B` Docker Deployment
|
|
|
|
Upgrading the Docker deployment version is very simple, just redeploy the latest image of LobeChat. Here are the instructions to perform these steps:
|
|
|
|
1. Stop and delete the currently running LobeChat container (assuming the name of the LobeChat container is `lobe-chat`):
|
|
|
|
```fish
|
|
docker stop lobe-chat
|
|
docker rm lobe-chat
|
|
```
|
|
|
|
2. Pull the latest Docker image of LobeChat:
|
|
|
|
```fish
|
|
docker pull lobehub/lobe-chat
|
|
```
|
|
|
|
3. Redeploy the LobeChat container using the newly pulled image:
|
|
|
|
```fish
|
|
docker run -d -p 3210:3210 \
|
|
-e OPENAI_API_KEY=sk-xxxx \
|
|
-e OPENAI_PROXY_URL=https://api-proxy.com/v1 \
|
|
-e ACCESS_CODE=lobe66 \
|
|
--name lobe-chat \
|
|
lobehub/lobe-chat
|
|
```
|
|
|
|
Make sure you have sufficient permissions to stop and delete the container before executing these commands, and Docker has sufficient permissions to pull the new image.
|
|
|
|
> \[!NOTE]
|
|
>
|
|
> If I redeploy, will my local chat history be lost?
|
|
>
|
|
> Don't worry, all of LobeChat's chat history is stored in your local browser. Therefore, when you redeploy LobeChat using Docker, your chat history will not be lost.
|