Catalyst will use CATALYST_CONFIG as well as ${NAME}_CONFIG; and if it is set, it will also look for the _local file next to it.
Setting CATALYST_CONFIG has no effect on Config::ZOMG, and setting env_lookup didn't seem to achieve the desired effect.
my $c = Config::ZOMG->new( env_lookup => 'CATALYST_CONFIG' )->load;
use Data::Dump; dd $c;
{}
What did work was to set name => "Catalyst", but then of course, ${NAME}_CONFIG no longer works with the original value of name.
use Config::ZOMG;
my $c = Config::ZOMG->new( name => "Catalyst" )->load;
use Data::Dump; dd $c;
do {
my $a = {
#snip
I have been using CATALYST_CONFIG exclusively in all of our Docker environments so I don't have to know which specific variable I have to override in each container; but any process using Config::ZOMG to avoid loading the entire Catalyst application therefore cannot find the config without hijinks.
Catalyst will use
CATALYST_CONFIGas well as${NAME}_CONFIG; and if it is set, it will also look for the_localfile next to it.Setting
CATALYST_CONFIGhas no effect onConfig::ZOMG, and settingenv_lookupdidn't seem to achieve the desired effect.What did work was to set
name => "Catalyst", but then of course,${NAME}_CONFIGno longer works with the original value ofname.I have been using
CATALYST_CONFIGexclusively in all of our Docker environments so I don't have to know which specific variable I have to override in each container; but any process using Config::ZOMG to avoid loading the entire Catalyst application therefore cannot find the config without hijinks.