What are the steps for migrating from Play! 1.1 to 2.0?

痞子三分冷 提交于 2020-01-06 04:10:26

问题


Is there any documentation on how to migrate from Play! 1.1 to Play! 2.0? I understand that I would need to rewrite the templates, but what additional steps would I need to perform to be up to date?

The app is written in Java with some jQuery with AJAX. I'm not using any NHibernate in it.

On a similar note, is the effort actually worth it? Or should I upgrade to 1.2 and not worry about 2.0?


回答1:


play 2 is not play1.2.5+, which means you don't get all the features you get in play1.2.4 and some new ones.

there are some important fundamental changes (from 1.2.x to 2.0) I am still trying to wrap my head around. I would suggest to head over the mailing list for detailed questions if docs are unclear.

now to address your specifics.

rewrite the templates

yes, you will need to do that. though, there are plans to support compatibility. no idea when it will be done though.

additional steps would I need to perform to be up to date?

  1. firstly, the project structure/setup/tools are different.
  2. secondly, serving requests is different. For isntance in play2, you return RESULT object. Have a look at the docs to get an idea.
  3. thirdly, alot of modules are not available for 2.0. So if you rely on them, you will have to wait/write them yourself.

based on what I have seen, you would basically have to rewrite significant portions from 1.1 to 2.0.

You are better off upgrading to 1.2.4.



来源:https://stackoverflow.com/questions/9960045/what-are-the-steps-for-migrating-from-play-1-1-to-2-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!