优化开发部署周期
我在开发中使用Seam3 + maven + jboss7组合。当我这样做时,是否可以优化加载时间
mvn clean package jboss-as:redeploy
目前,使用带有 SSD (Mac Air) 的 core2duo 需要 20 秒以上。
在我的工作流程中,通常会进行大量小的更改,然后重新部署并查看更改。对于当前的设置来说,这是一个相当大的瓶颈,它打破了我的流程。
是否可以对我的配置进行正确的热部署?
开发时有没有让启动更快的参数?
I use Seam3 + maven + jboss7 combination in my development. Would it be possible to optimize the loadup time when I do
mvn clean package jboss-as:redeploy
Currently this takes over 20 seconds with core2duo with an SSD (Mac Air).
In my workflow, it's common to make a lot of small changes and then redeploy and see changes. It's quite a big bottleneck with current setup, and it breaks my flow.
Would it be possible to do proper hot-deployment over my configuration?
Is there parameters for making startup faster when developing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不存在热部署。我也不知道为什么要花20秒。我的 JBoss AS7 启动时间约为 3 秒,而我的 Maven 部署时间约为 1 秒。
服务器是在本地运行还是在不同的计算机上运行?这可能是它接管网络的时间。
您还可以编写自定义部署脚本或编写自定义 Java 代码来部署应用程序。
There is no hot-deployment. I'm not sure why it would be taking 20 seconds either. I get around a 3 second start-up time with JBoss AS7 and my deployment times are around 1 second maven deployments.
Is the server running locally or on a different machine? It could be the time it takes over the network.
You can write custom deployment scripts or write custom Java code to deploy applications as well.
我发现了JRebel。这是一份我没想到会降临到我身上的礼物。这支持我的工作流程并使我更加高效。如果您需要热部署,请尝试一下!
I found about JRebel. It's a gift that I would not have expected to fall upon me. This supports my workflow and makes me much more efficient. If you need hot-deployment, try it out!