Note that individual modules built in development mode will not deploy to a production server. On deployment, the server will show the error: "Module <module-name>...was not compiled in production mode". You can correct this by running
gradlew deployApp -PdeployMode=prod
or, to build an individual module in production mode, you can add the following line to the module.properties file.
BuildType: Production
Production servers do not have access to the source directories, and should be optimized by performance, so they require that all resources be packaged in each module's build artifacts. This can be created by running gradlew deployApp -PdeployMode=prod instead. If you have existing build artifacts on your system, you will need to do an gradlew cleanBuild first so that the build recognizes that it can't use existing .module files.
All standard LabKey Server distributions (the .zip and .tar.gz downloads) are compiled in production mode.
previousnext |
expand allcollapse all |