I can see source code in production version 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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With