将grails版本从3.0.x升级到3.3.x的步骤

问题描述 投票:0回答:2

我正在将grails应用程序(3.0.17)升级到版本3.3.11。是否可以执行任何步骤来完全升级它:

1. Should we create a new app (v3.3.11) from scratch and then move our existing app files to this new app(according to new project structure)?
2. Or we can make the upgrade changes in the existing app itself?
grails gorm grails-plugin grails-domain-class grails-3.0
2个回答
0
投票

请查看官方文档:


0
投票
  1. 我们应该从头开始创建新应用(v3.3.11),然后将现有应用文件移至该新应用(根据新项目结构)?
  2. 或者我们可以在现有应用程序本身中进行升级更改?

两种方法都可以使用,并且如果正确完成,则两种方法都将在升级后导致项目中的代码完全相同。在过去的13年左右的时间里,我参与了许多Grails升级,我可以说创建一个新的应用程序可以节省很多时间,这有很多原因。当然,“新”应用程序代码将代替旧代码并致力于源代码控制,而从查看源代码历史记录来看,您真的不应该知道所有文件是手动编写还是已创建按create-app,然后可能进行编辑。

我希望这是有道理的。祝你好运!

© www.soinside.com 2019 - 2024. All rights reserved.