【发布时间】:2015-07-21 17:44:05
【问题描述】:
我想通过 gwt-maven-plugin 和 jenkins 在我的服务器上部署我的 GWT 2.7 应用程序。但是,在编译过程之后,当我启动我的应用程序时,我有这个错误消息:
Couldn't load APPLICATION_NAME from Super Dev Mode
server at http://MY_IP:9876.
Please make sure this server is ready.
确实,从 2.7 开始默认启用超级开发模式。那么,如何禁用它以使用生产模式?
【问题讨论】:
-
你在 url 中附加 gwt.codesvr 吗?
-
不,我只使用了ip:port/context。在 2.6 版本中就足够了(因为我认为超级开发模式被禁用了)
-
我的主机页面是 index.html 以避免在 url 中附加它
-
您在部署之前
mvn clean了吗?请参阅stackoverflow.com/a/27187142/116472 和 github.com/gwt-maven-plugin/gwt-maven-plugin/issues/108(或者您可以在 dev 中使用不同的输出目录;例如,请参阅github.com/tbroyer/gwt-maven-archetypes 中的设置——尽管使用不同的 gwt-maven-plugin)
标签: gwt gwt-super-dev-mode gwt-maven-plugin