GWT 2.7 + GAE app looks for codeserver when deployed

后端 未结 2 2072
说谎
说谎 2021-01-05 02:32

Why does appengine try to use Super Dev Mode?

Every time I deploy my GWT app to appengine and try to access it I get the white loading screen, then after about 20-

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-05 03:16

    gwt:compile tries to work "incrementally" by comparing the timestamp of the nocache.js file with the ones of the source files, and skipping GWT compilation if it thinks the output is up-to-date. This is brittle though. gwt:run (without false; and gwt:run-codeserver with launcherDir) will overwrite the nocache.js with a SuperDevMode-specific version, and this is likely to lead to gwt:compile skipping the compilation.

    The takeaway is: when deploying or "releasing", make sure you first run mvn clean or force gwt:compile to run by passing -Dgwt.compiler.force to Maven.

提交回复
热议问题