java - Production mode not enabled in Jhipster Application -


I am using Jhipster to develop a spring application.

When I need to deploy, Code> MVN-Prodod package . This command generates two battle files: xxx.war and xxx.original.war . I deploy the xxx.original war file in a local talket.

Although I am convinced that this is the right process, this application still behaves when the DEV profile is used.

Is production mode supported or not?

The output mode is supported by Jhipster, this process is up That's just not perfect, that's just not perfect.

Cause

-Pprod is used to create logic production mode profiles, but it is used to make tomcat Actually does not tell that mode to be enabled, so it returns to default `dev 'mode.

Solution

As mentioned, to enable production mode, simply -Dspring.profiles.active = prod to your JAVA_OPTS . For example, you could call your & lt; Tomcat-home & gt; / Bin /setenv.sh / .bat by editing the file.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -