Commit ed3983a3093da909a75414327fab9a520ea6a02c
Committed by
小小鲁班
1 parent
c879cfdf
docs: add migration guide
Showing
5 changed files
with
64 additions
and
0 deletions
docs/.vuepress/config.js
| @@ -65,6 +65,13 @@ module.exports = { | @@ -65,6 +65,13 @@ module.exports = { | ||
| 65 | '/en/plugin-development/quick-start', | 65 | '/en/plugin-development/quick-start', |
| 66 | ], | 66 | ], |
| 67 | }, | 67 | }, |
| 68 | + { | ||
| 69 | + collapsable: false, | ||
| 70 | + title: 'Migrating', | ||
| 71 | + children: [ | ||
| 72 | + '/en/migration-guide/', | ||
| 73 | + ], | ||
| 74 | + }, | ||
| 68 | ], | 75 | ], |
| 69 | }, | 76 | }, |
| 70 | }, | 77 | }, |
| @@ -108,6 +115,13 @@ module.exports = { | @@ -108,6 +115,13 @@ module.exports = { | ||
| 108 | '/zh/plugin-development/quick-start', | 115 | '/zh/plugin-development/quick-start', |
| 109 | ], | 116 | ], |
| 110 | }, | 117 | }, |
| 118 | + { | ||
| 119 | + collapsable: false, | ||
| 120 | + title: '迁移', | ||
| 121 | + children: [ | ||
| 122 | + '/zh/migration-guide/', | ||
| 123 | + ], | ||
| 124 | + }, | ||
| 111 | ], | 125 | ], |
| 112 | }, | 126 | }, |
| 113 | }, | 127 | }, |
docs/en/migration-guide/README.md
0 → 100644
docs/en/migration-guide/migration-guide-1.8.0-to-1.8.1.md
0 → 100644
| 1 | +# Migration guide from v.1.8.0 to v.1.8.1 | ||
| 2 | +Upgrading your Luban-H5 application to `v.1.8.1`. | ||
| 3 | + | ||
| 4 | +Here are the patch changes: | ||
| 5 | +- upgrade the strapi version from beta.17.x to beta.18.4 to fix [/upload return the url contains `localhost:1337` after migrate from beta.13 to beta.17.8](https://github.com/strapi/strapi/issues/4791) | ||
| 6 | + | ||
| 7 | +- see more here: [Strapi Migration guide from beta.17+ to beta.18](https://strapi.io/documentation/3.0.0-beta.x/migration-guide/migration-guide-beta.17-to-beta.18.html) | ||
| 8 | + | ||
| 9 | + | ||
| 10 | +To upgrade a project to the `v.1.8.1` version of Luban-H5 follow the instructions below. | ||
| 11 | + | ||
| 12 | +```bash | ||
| 13 | +# clone the newest code | ||
| 14 | +# clean the h5-api cache, node_modules and admin panel | ||
| 15 | +# !! and this step will stop the api service(it will run the `./luban-h5 stop` firstly) | ||
| 16 | +./luban-h5 clean | ||
| 17 | +# reinstall the dependencies and rebuild the admin panel | ||
| 18 | +./luban-h5 init | ||
| 19 | +./luban-h5 start | ||
| 20 | +``` | ||
| 21 | + | ||
| 22 | +feel free open an [issue](https://github.com/ly525/luban-h5/issues) if you have questions about this. | ||
| 0 | \ No newline at end of file | 23 | \ No newline at end of file |
docs/zh/migration-guide/README.md
0 → 100644
docs/zh/migration-guide/migration-guide-1.8.0-to-1.8.1.md
0 → 100644
| 1 | +# 鲁班H5 v.1.8.0 至 v.1.8.1 迁移指南 | ||
| 2 | +升级`鲁班H5`版本至 `v.1.8.1`. | ||
| 3 | + | ||
| 4 | +主要修改是: | ||
| 5 | +- 将 strapi依赖从 beta.17.x 升级至 beta.18.4, 主要为了修复 [图片上传之后,返回的response url 中包含 localhost:1337](https://github.com/strapi/strapi/issues/4791) | ||
| 6 | + | ||
| 7 | +- 更多请参见 Strapi 升级指南: [Strapi Migration guide from beta.17+ to beta.18](https://strapi.io/documentation/3.0.0-beta.x/migration-guide/migration-guide-beta.17-to-beta.18.html) | ||
| 8 | + | ||
| 9 | + | ||
| 10 | +将 鲁班H5 升级到`v.1.8.1` 比较简单,只要执行如下命令即可: | ||
| 11 | + | ||
| 12 | +```bash | ||
| 13 | +# clone 最新代码 | ||
| 14 | +# 删除后端相关的缓存、admin后台、node_modules | ||
| 15 | +# !! 注意下面的命令会先停止服务 | ||
| 16 | +./luban-h5 clean | ||
| 17 | +# 重新安装依赖,构建admin后台 | ||
| 18 | +./luban-h5 init | ||
| 19 | +./luban-h5 start | ||
| 20 | +``` | ||
| 21 | + | ||
| 22 | +如果有疑问,提 [issue](https://github.com/ly525/luban-h5/issues) 即可 | ||
| 0 | \ No newline at end of file | 23 | \ No newline at end of file |