小编Nic*_*aez的帖子

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
Run Code Online (Sandbox Code Playgroud)

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

liquibase:
    context: prod
Run Code Online (Sandbox Code Playgroud)

But …

java jhipster

5
推荐指数
1
解决办法
1245
查看次数

标签 统计

java ×1

jhipster ×1