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: 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 Solution As mentioned, to enable production mode, simply xxx.war and
xxx.original.war . I deploy the
xxx.original war file in a local talket.
-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.
-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
Post a Comment