Skip to content

常见问题

Note: ⚠️ 本文档由 AI 自动翻译。如有任何不准确之处,请参考英文原版

部署方法

安装旧版本

使用 --branch 标志来安装特定版本:

git clone https://github.com/flexai/flexai.git --branch 0.15.3

其余设置与安装最新版本相同。

使用 ZIP 压缩包安装

对于网络受限环境或无法使用 git 的情况:

# 下载最新版本
wget -O dify.zip "$(curl -s https://api.github.com/repos/flexai/flexai/releases/latest | jq -r '.zipball_url')"
unzip dify.zip && rm dify.zip

或者,在另一台设备上下载 ZIP 文件并手动传输。

升级方法:

wget -O dify-latest.zip "$(curl -s https://api.github.com/repos/flexai/flexai/releases/latest | jq -r '.zipball_url')"
unzip dify-latest.zip && rm dify-latest.zip
rsync -a dify-latest/ dify/
rm -rf dify-latest/
cd dify/docker
docker compose pull
docker compose up -d

备份程序

升级前创建备份

升级前务必备份以防止数据丢失:

cp -r dify "dify.bak.$(date +%Y%m%d%H%M%S)"

这将创建一个带时间戳的备份,便于轻松恢复。