Hi Guys,
I’m using Wirebox and Logbox standalone in a legacy application and I’m missing the environment settings ? Is there a way to abstract that out of Coldbox to be available for the standalone frameworks also ?
Thanks,
Cristian
Hi Guys,
I’m using Wirebox and Logbox standalone in a legacy application and I’m missing the environment settings ? Is there a way to abstract that out of Coldbox to be available for the standalone frameworks also ?
Thanks,
Cristian
If I were you, I would either maintain separate config files for each environment, OR extend a base config and override stuff to prevent redundancy. Then, just do your own environment detection and load the appropriate config.
Of course, switching fully over to ColdBox is another option
Thanks!
~Brad
ColdBox Platform Evangelist
Ortus Solutions, Corp
E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com
Thanks,
I don’t want to switch for now, I will only pollute the legacy app as I have figured it out how to integrate CB with it.
External env detection is an option but I was thinking to pass the configuration data to wirebox at init as properties.
Cristian
Well, you can certainly have if statements in your config files since they’re just CFCs. I think it just boils down to how you want to organize it, but somewhere you’ll need to have a conditional that figures out the environment.
Thanks!
~Brad
ColdBox Platform Evangelist
Ortus Solutions, Corp
E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com