How enable production mode in GWT 2.7 application

亡梦爱人 提交于 2020-01-02 18:07:21

问题


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 ?


回答1:


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.



来源:https://stackoverflow.com/questions/30163968/how-enable-production-mode-in-gwt-2-7-application

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