Please note that GZipping is done by the application server, so this section only applies if you use the “executable JAR” option described above. You can have more information on this configuration by looking at the pression.* keys in the Spring Boot application properties, configured in the application-prod.yml file. Within an executable JAR file, which uses the prod profile, JHipster configures GZip compression on your Web resources.īy default, compression will work on all static resources (HTML, CSS, JavaScript) and on all REST requests.
#Maven install skip tests windows
There are many other options that you can find in Spring Boot documentation, including more security steps and Windows service. Ln -s jhipster-0.0.1-SNAPSHOT.jar /etc/init.d/jhipsterĬhown jhuser:jhuser jhipster-0.0.1-SNAPSHOT.jarĬonsidering jhuser a non-root OS account that will run the application, then the application can be run this way: Modify the pom.xml to change the application packaging to war like:.To package the application as a “production” WAR: This will generate a file target/jhipster-0.0.1-SNAPSHOT.jar (if your application is called “jhipster”). To package the application as a “production” JAR, please type: If you want more information on the available profiles, please go the section titled “ Development and Production profiles”.īuilding an executable JAR / WAR file to "Building an executable JAR / WAR file" This profile will compile, test and package your application with all productions settings. To use JHipster in “production” mode, use the pre-configured prod profile. This allows to test a production build from Maven, without building a real package. Testing a production build to "Testing a production build" This section describes the more important options - if you are in hurry, run a normal production build, but don’t forget to read the security section!īuilding a production package to "Building a production package" JHipster generates a fully production-ready, optimized and secured application.
Improve this page Using JHipster in production to " Using JHipster in production"