The version of the gaming environment includes source codes

Can I see the source code in the production version of the application based on the game framework? Do I need this? Can it be deleted in the production version?

+6
source share
3 answers

No, you won’t need it as soon as the source has been compiled backstage when the application is first launched in production mode. If you do not want to save the source code in a working environment, make sure that you use the precompile option

play precompile <appname> 

To make sure your application code is compiled before distribution. The application can then be distributed without source code. Obviously, do not delete the source code unless you support it in the source control or elsewhere!

+7
source

Remember to run the application using the -Dprecompiled=true flag to avoid unnecessarily detecting code changes.

 play start myApp -Dprecompiled=true 

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

+4
source

It only works with the "start of the game." Do not delete templates in app \ views. All * .java files can be deleted

+1
source

Source: https://habr.com/ru/post/889216/


All Articles