NicoPaez
NicoPaez

Reputation: 436

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

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

Upvotes: 5

Views: 1399

Answers (1)

Julien Dubois
Julien Dubois

Reputation: 3688

This is a common Spring Boot property

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

Upvotes: 2

Related Questions