I compiled my app with following setting in application.conf file
# Application mode
# ~~~~~
# Set to dev to enable instant reloading and other development help.
# Otherwise set to prod.
application.mode=prod
%prod.application.mode=prod
I then use the cmd
play war myapp -o myapp --zip
Then deployed to production.
When I looked at the tomcat/webapps/myapp/web-inf directory
I can see the java classes as well as settings files from Netbeans(used Netbeans as my IDE)
Is there a verbose that I should use when compiling and creating WAR file from Prod system deployment?
Another option is to use the
--excludeflag that will not package the folders you mention.You could go about it as:
play clean && play war --%prod --exclude folders:separated:by:colon -o myWar --zip