主要包括以下几步:
Step 1
备份数据(包括原网站和数据库以及服务器参数),非常重要,后期干奔溃了可以重新出发
Step 2
进入论坛管理员后台,关闭所有插件(Flarum自带的可关,也可以不关闭)
Step 3
找到网站目录 composer.json文件中的require部分, 将beta13的内容
"antoinefr/flarum-ext-money": "^0.8.0",
"antoinefr/flarum-ext-online": "^0.4.0",
"clarkwinkelmann/flarum-ext-post-date": "^0.1.1",
"davis/flarum-ext-customheader": "^0.1.0@beta",
"extiverse/bazaar": "^0.4.1",
"flagrow/ads": "^0.2.4",
"flarum/approval": "^0.1.0",
"flarum/auth-facebook": "^0.1.0",
"flarum/auth-github": "^0.1.0@beta",
"flarum/auth-twitter": "^0.1.0",
"flarum/bbcode": "^0.1.0",
"flarum/core": "v0.1.0-beta13",
"flarum/emoji": "^0.1.0",
"flarum/flags": "^0.1.0",
"flarum/lang-english": "^0.1.0",
"flarum/likes": "^0.1.0",
"flarum/lock": "^0.1.0",
"flarum/markdown": "^0.1.0",
"flarum/mentions": "^0.1.0",
"flarum/pusher": "^0.1.0",
"flarum/statistics": "^0.1.0",
"flarum/sticky": "^0.1.0",
"flarum/subscriptions": "^0.1.0",
"flarum/suspend": "^0.1.0",
"flarum/tags": "^0.1.0",
替换为V1.1.0的内容
"flarum/approval": "*",
"flarum/bbcode": "*",
"flarum/core": "^1.1",
"flarum/emoji": "*",
"flarum/flags": "*",
"flarum/lang-english": "*",
"flarum/likes": "*",
"flarum/lock": "*",
"flarum/markdown": "*",
"flarum/mentions": "*",
"flarum/pusher": "*",
"flarum/statistics": "*",
"flarum/sticky": "*",
"flarum/subscriptions": "*",
"flarum/suspend": "*",
"flarum/tags": "*",
注意: 除了core改为1.1, 其他的型号都可以用 “*”代替
还需要做的是删除: “minimum-stability”: “beta”,
Step 4
进入服务器后台, 更新插件及内核
cd /www/wwwroot/mulu.com
composer update
Step 5
进入后台管理界面,一个一个开启插件(务必一个一个,方便排查错误),最后的效果
写在最后的一些注意事项
- 插件安装的时候切记一个一个composer,然后开启调试,一次安装好几个不好排错
- 插件安装的时候不知道可以直接composer require ***, 也可以直接在composer.json中按照以往格式写出ceshi., 例如: “flarum/tags”: “*”,
- 注意插件开启顺序,有的插件可能互相有依赖
注意一些插件不兼容:
"clarkwinkelmann/flarum-ext-post-date": "*"
"the-turk/flarum-extended-appearance": "^0.1.1",
"the-turk/flarum-password-strength": "^1.0",
"veroz1/users-list": "^0.1.3"
"flagrow/ads": "^0.2.4",
"flarumalshain/showlastpost": "*"
"davis/flarum-ext-customheader": "^0.1.0@beta",
"extiverse/bazaar": "^0.4.1",
"ganuonglachanh/flarum-ext-markdown-editor": "*"
"itnt/flarum-backtop": "v0.1.7.2",
"lcinhk/flarum-ext-acgembed": "^0.5.2",
如果懒的查看,下面的这些是我本人测试没问题的,可以直接替换require
"flarum/approval": "*",
"flarum/bbcode": "*",
"flarum/core": "^1.1",
"flarum/emoji": "*",
"flarum/flags": "*",
"flarum/lang-english": "*",
"flarum/likes": "*",
"flarum/lock": "*",
"flarum/markdown": "*",
"flarum/mentions": "*",
"flarum/pusher": "*",
"flarum/statistics": "*",
"flarum/sticky": "*",
"flarum/subscriptions": "*",
"flarum/suspend": "*",
"flarum/tags": "*"
"zhetengtiao/flarum-lang-simplified-chinese": "1.0.0.1",
"fof/best-answer": "^1.1.7",
"fof/drafts": "^1.0.3",
"fof/filter": "^1.0.2",
"fof/follow-tags": "^1.0.2",
"fof/geoip": "^1.0.1",
"fof/links": "^1.0.3",
"fof/pages": "^1.0.1",
"fof/upload": "^1.0.7",
"fof/user-bio": "^1.0.1",
"fof/username-request": "^1.0.1",
"fof/subscribed": "^1.0.2",
"fof/pretty-mail": "^1.0.1",