开发者

play framework production version includes source codes

开发者 https://www.devze.com 2023-03-08 16:40 出处:网络
I can see source code in production versio开发者_Go百科n of play framework based applicaton? Do I need it?

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

精彩评论

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