Is there any common approach to follow when building the app for production? I know the documentation and got it to work when performing the following steps (manually mostly):
- Modify web-app.properties to remove username/password for the login:
# Enable for production cuba.web.loginDialogDefaultUser= cuba.web.loginDialogDefaultPassword=
- Build a war file :
$ gradlew buildWar
- Modify the local.app.properties in both war files:
cuba.connectionUrlList = https://servername/app-core // Only on app.war, not app-core.war cuba.webHostName = servername cuba.webAppUrl = http://servername/app
- Modify the web.xml in the app.war:
<context-param> <description>Vaadin production mode</description> <param-name>productionMode</param-name> <param-value>true</param-value> </context-param>
I guess the last two steps could be done while deploying the app on a docker image as well but somehow the entire process feels inconvenient and is should be possible to do this easier.
Is there anything I’m doing wrong here or missing?