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
This is a common Spring Boot property
In your application-prod.yml
you need to set liquibase.enabled=false
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With