如何在GWT 2.7应用程序中启用生产模式 [英] How enable production mode in GWT 2.7 application

查看:175
本文介绍了如何在GWT 2.7应用程序中启用生产模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过gwt-maven-plugin和jenkins将我的GWT 2.7应用程序部署到我的服务器上。但是,在编译过程之后,当我启动我的应用程序时,出现此错误消息:

无法从超级开发模式加载APPLICATION_NAME
服务器,地址为http:// MY_IP:9876。
请确保此服务器已准备好。



事实上,超级开发模式自2.7开始默认启用。那么,如何禁用它来使用生产模式呢?

解决方案

好的非常感谢您的评论。的确,我的问题涉及* .nocache.js和* .devmode.js文件。我在2.6版本中开始了我的项目(我的第一个项目是GWT),并且这些文件是由我的错误创建的(由dev和super-dev模式创建)。所以,当我的jenkins部署了我的项目时,它使用了这些文件,所以即使我在部署之前进行了mvn clean也没有任何效果。

所以,我从我的这些文件中删除了这些文件项目,我在部署前进行了mvn clean install,以解决我的问题。


I would like to deploy my GWT 2.7 application on my server through gwt-maven-plugin and jenkins. But, after compile process, when I launch my application, I've this error message :

Couldn't load APPLICATION_NAME from Super Dev Mode server at http://MY_IP:9876. Please make sure this server is ready.

Indeed, the super dev mode is enabled by default since 2.7. So, how disable it to use production mode ?

解决方案

Ok thank you very much for your comment. Indeed, my problem concerned the *.nocache.js and *.devmode.js files. I started my project (my first one in GWT) in 2.6 version and these files were created (by dev and super-dev-mode) and versionned by my fault. So, when my jenkins deployed my project, it used these files so even if I did mvn clean before deploy it had no effect.

So, I removed these files from my project and I did a mvn clean install before deploy to fix my issue.

这篇关于如何在GWT 2.7应用程序中启用生产模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆