Setting up production mode
To run Flow+MPR in production mode you need to update the project as told in Taking your Application into Production.
Note
|
The flow-server-production-mode dependency sets productionMode=true using
a web-fragment.xml that then also reflects to Vaadin 7/8 production mode setting.
|
Sample production mode profile for MPR
<profile>
<!-- Production mode is activated using -Pproduction -->
<id>production</id>
<properties>
<vaadin.productionMode>true</vaadin.productionMode>
</properties>
<dependencies>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>flow-server-production-mode</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>com.vaadin</groupId>
<artifactId>flow-maven-plugin</artifactId>
<version>${flow.version}</version>
<executions>
<execution>
<goals>
<goal>build-frontend</goal>
</goals>
<phase>compile</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
7BC30A2D-1C30-40EF-96F4-290C6D432E57