Environment specific configuration (dev, qa, prod)

We need to support different environments (dev, qa, prod) each with its own configuration (DB connection string, S3 configuration etc).
Spring supports multiple environment configuration by using environment specific property files and runtime java parameters - ex: -DenvTarget=dev

Does CUBA have support for multiple runtime environments? How can we achieve this ?

1 Like

Hi,

to some degree - yes:

https://youtrack.cuba-platform.com/issue/PL-8684

Since 6.8 we can use @ConditionalOnAppProperty annotation to emulate desired behavior.

See:

Hello,

I want to achieve the same by passing environment specific property files at runtime.

Please share a resourceful solution.