开发者

play framework production version includes source codes

I can see source code in production versio开发者_Go百科n of play framework based applicaton? Do I need it? Can it be removed in production version?


No you don't need it, once the source has been compiled behind the scenes when the application first starts up in production mode. If you don't want to keep the source code on your production environment, make sure you use the precompile option

play precompile <appname>

To make sure that your application code is compiled before you distribute. The app can then be distributed without the source code. Obviously don't delete the source code unless you have it backed up in source control or other location!


Don't forget to start your application using the -Dprecompiled=true flag to avoid unnecessary code changes detection.

play start myApp -Dprecompiled=true

See http://www.playframework.org/documentation/1.2/releasenotes-1.1


Only works with "play start". Don't delete the templates in app\views. All *.java files can be deleted

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜