To access them dynamically I would like to use different property config files for my environments, like
- config-production.properties
- config-preprod.properties
- config-sandbox.properties
Is there a system variable I could use to get the name of the environment the app is deployed in (production/preprod/sandbox)?
Or do I have to specify this manually as a property while deploying? Any idea or best practices?