简体   繁体   English

使用Play进行Web开发! 骨架

[英]Web development using Play! framework

I started learning and developing with Play! 我开始用Play学习和开发! framework. 框架。 I love this framework, it's simple and easy to learn. 我喜欢这个框架,它简单易学。 Yet, I think there's one disadvantage when comparing Play! 然而,我认为比较Play时有一个缺点! (and JAVA) to other frameworks using a dynamic language (like Python, Ruby..) (和JAVA)使用动态语言(如Python,Ruby ..)的其他框架

For every change (front-end or back-end) I have to wait for the classes to be compiled, even if it's just a simple HTML adjustment. 对于每个更改(前端或后端),我必须等待编译类,即使它只是一个简单的HTML调整。

I want to know if there's a smart way to "overcome" this. 我想知道是否有一种“克服”这种方法的聪明方法。
I can think of one which is styling your frontend independently from the project and only then attach it. 我可以想到一个独立于项目的前端样式,然后才附加它。

Still, Is there any other thing that can be done? 不过,还有其他事情可以做吗?
Thanks. 谢谢。

http://zeroturnaround.com/software/jrebel/ http://zeroturnaround.com/software/jrebel/

what you asked for is JRebel. 你要的是JRebel。

Every time a developer tests a code change it takes minutes to build and deploy the application. 每次开发人员测试代码更改时,构建和部署应用程序都需要几分钟。 JRebel keeps the app server running at all times, so testing is instantaneous and interactive. JRebel始终使应用服务器保持运行,因此测试是即时和交互式的。

as they described themselves 正如他们所描述的那样

You don't need to make any additional efforts - Play has hot-compile feature built-in. 您无需进行任何额外的工作 - Play内置了热编译功能。

Just while development use play ~run command to start the application and ... work. 就在开发时使用play ~run命令来启动应用程序和...工作。 It causes that changes are compiled as soon as possible (after detecting changes in file(s)). 它会导致更改尽快编译(在检测到文件更改后)。

Of course if you changing lot o files without saving and then you'll save all of them at once the compilation will take several seconds, but when saving often small changes (ie. consider using IDE with auto-save function) Play compiles them almost in the fly. 当然,如果您在不保存的情况下更改了很多文件,那么您将立即保存所有这些文件,编译将花费几秒钟,但是在保存时通常会进行小的更改(例如,考虑使用具有自动保存功能的IDE)播放几乎将它们编译在飞行中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM