:circus_tent: An open source forum/community system based on Rails, developed based on Ruby China.
slim-buster
to alpine
, requirement Docker v20+.NOTE: Before you upgrade Homeland v3.10.0, please ensure your Docker Engine version v20+.
Full Changelog: https://github.com/ruby-china/homeland/compare/v3.9.0...v3.10.0
Full Changelog: https://github.com/ruby-china/homeland/compare/v3.8.4...v3.9.0
Features:
Fix:
New feature:
cert_domain
has removed.https
has removed, now Homeland will enable https for all.domain
now will use for Caddy generate SSL, please make sure that bind on your server.Now we do not care about SSL renew, Caddy will help us to do that.
Need update homeland-docker to latest or use 3-8-stable branch.
Update homeland-docker
cd homeland-docker
git pull fetch && git checkout 3-8-stable
Update homeland
make update
make start
github_token
, github_secret
,以及各种带 .
的配置信息,请参考 配置文档
Changes:
Bugfix:
重构用户联系字段,奖励设置字段,剥离到新的 profiles
表,以避免设置修改的时候缓慢的问题,并依靠权限的设置支持更多的扩展。
此次升级,在启动的时候将会自动迁移老数据到新的表,启动需要一定时间等待。
受数据量多少影响,启动时间可能会很久,请手动检查数据是否完成升级。 升级内容参见:https://github.com/ruby-china/homeland/blob/0963eac06ba4e77601d31fa526f81ff84103b15d/db/migrate/20200721022652_migrate_profile_data.rb
升级新版本会复制老数据到新的结构,不影响老数据,如升级失败,可以尝试回滚。
升级完成以后,请检查用户个人扩展联系信息,比如 Facebook、Instagram,奖励的支付宝、微信二维码等信息是否正确,如无问题,可以手动执行下面的流程清理老的废旧数据。
执行 make console
进入 Rails Console (做一下动作之前,建议先备份数据库)
irb> Setting.where(thing_type: "User")
irb> Setting.where(thing_type: "User").delete_all
升级此版本请注意更新 homeland-docker
以下动作的目的是更新 Docker Compose 的配置信息,并重新构建 Docker Container,以便于在过程中去掉 ElasticSearch Container,如果你熟悉 Docker,也可以手动操作。
主要是更新 homeland/homeland 的 Docker Image,去掉 ElasticSearch Container,重新启动。
$ git pull origin master
$ make update
$ make stop-all
$ make start
因为搜索服务换了,所以你需要执行 make reindex
重建搜索索引。