Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于更新 #213

Open
lhxktxwd opened this issue Dec 17, 2024 · 3 comments
Open

关于更新 #213

lhxktxwd opened this issue Dec 17, 2024 · 3 comments
Labels
question Further information is requested

Comments

@lhxktxwd
Copy link

我从2022年12月开始使用就没有更新过,如果现在更新到最新会不会有破坏性变更,导致服务无法启动

@cubicwork
Copy link
Contributor

@lhxktxwd 您好,我需要确认您的安装方式,您的安装方式是

  1. 从0开始安装
  2. docker-compose 安装
  3. docker 镜像安装

以上三种方式的哪一种

@cubicwork cubicwork added the question Further information is requested label Dec 21, 2024
@lhxktxwd
Copy link
Author

@lhxktxwd 您好,我需要确认您的安装方式,您的安装方式是

  1. 从0开始安装
  2. docker-compose 安装
  3. docker 镜像安装

以上三种方式的哪一种

我是第三种

@cubicwork
Copy link
Contributor

@lhxktxwd 您好,自 2023 年6 月以后的 docker 镜像版本和之前的并不兼容,升级迁移工作可能会有难度:
请在在做好充分的备份工作之后,选择您认为下面两种最最适合您的方式进行更新:
方式1:登录您的 docker 镜像,然后找到 /data/www/codefever-community 目录, 然后运行 git pull origin master.
方式2:登录您的 docker 镜像,将 /var/lib/mysql 、 /data/www/codefever-community/env、/data/www/codefever-community/application/logs 、/data/www/codefever-community/git-storage 、/data/www/codefever-community/file-storage 目录 copy 到宿主机上,然后按照 https://github.com/PGYER/codefever/blob/master/doc/zh-cn/installation/install_via_docker.md 这篇文档的描述去安装并启动镜像(注意设置 -v / -p 参数的时候需要按照实际情况调整)即可。

升级到之后的 docker,再次更新只需更新镜像即可。

@cubicwork cubicwork reopened this Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants