Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jhipster: how to avoid database update when running in PROD mode?

Tags:

java

jhipster

When I run my jhipster app in production mode (spring.profiles.active=prod) the database update is always executed. I need to avoid this behaviour because organizational policies require DB updates to be run manually by the DBA.

Is it possible?

UPDATE with answer: Yes, it is possible. The way to do it is exactly what @julien-dubois said: in the application-prod.yml file add the following line:

liquibase.enabled: false

Warning, the application-prod.yml generated by jhipster already contains some liquibase configuration

liquibase:
    context: prod

But do not add the "enabled" entry under that "liquibase" entry because it is ignored. You should add a new root level entry:

liquibase.enabled: false
liquibase:
    context: prod
like image 657
NicoPaez Avatar asked Oct 31 '22 16:10

NicoPaez


1 Answers

This is a common Spring Boot property

In your application-prod.yml you need to set liquibase.enabled=false

like image 159
Julien Dubois Avatar answered Nov 15 '22 05:11

Julien Dubois