收起左侧

怎么升级在飞牛部署的dify

2
回复
146
查看
[ 复制链接 ]

4

主题

16

回帖

0

牛值

江湖小虾

2025-3-22 16:55:24 显示全部楼层 阅读模式

这是官方的升级教程

Upgrade Guide

Docker compose deployments

  1. Back up your customized docker-compose YAML file (optional)
    cd docker
    cp docker-compose.yaml docker-compose.yaml.$(date +%s).bak
  2. Get the latest code from the main branch
    git checkout main
    git pull origin main
  3. Stop the service, Command, please execute in the docker directory
    docker compose down
  4. Back up data
    tar -cvf volumes-$(date +%s).tgz volumes
  5. Upgrade services
    docker compose up -d

Source Code deployments

  1. Stop the API server, Worker, and Web frontend Server.
  2. Get the latest code from the release branch:
    git checkout 1.1.2
  3. Update Python dependencies:
    cd api
    poetry install
  4. Then, let's run the migration script:
    poetry run flask db upgrade
  5. Finally, run the API server, Worker, and Web frontend Server again.
收藏
送赞
分享

4

主题

16

回帖

0

牛值

江湖小虾

2025-3-22 16:56:45 楼主 显示全部楼层

可是 cd docker提示如下

cd docker cp docker-compose.yaml docker-compose.yaml.$(date +%s).bak -bash: cd: docker: No such file or directory cp: cannot stat 'docker-compose.yaml': No such file or directory

35

主题

2402

回帖

290

牛值

共建版主

社区上线纪念勋章社区共建团荣誉勋章飞牛百度网盘玩家

2025-3-22 17:00:14 显示全部楼层
提问请到问答互助版块发帖。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则