You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Matthew Bertolini <mb...@mypublisher.com> on 2013/04/19 23:01:16 UTC

Environment Specific Configurations - Best practices

I was wondering how everyone tackles environment specific configurations in OFBiz. We deploy the same codebase to multiple environments (local, development, QA, and production) and we have different settings for things like database connections, server settings, security settings, etc. What are the best practices for maintaining different settings for each environment?

In other Java applications I maintain, I have an environment variable (app.env) that I set a runtime with something like 'dev' or 'prod' which get used to load properties files named 'settings_dev.properties' and 'settings_prod.properties'. In the code (or in a spring file) can can substitute the ${app.env} with the environment name and it will load the correct configuration. Is something like this possible with OFBiz configuration/XML files? Is there a pre-baked solution already in place?

Thanks,
Matt Bertolini