This just took me two hours to debug, so I thought I’d go ahead and turn it in to a post…
Summary
Catalyst supports reading a config file. usually called myapp.conf. You can also add extra configuration, but figuring out where it goes took me ages.
In a nutshell, Catalyst will read myapp.conf and myapp_local.conf.
You can change what the ‘local’ part in that is by setting an environment variable called MYAPP_CONFIG_LOCAL_SUFFIX or one called CATALYST_CONFIG_LOCAL_SUFFIX.
If MYAPP_CONFIG_LOCAL_SUFFIX is set, CATALYST_CONFIG_LOCAL_SUFFIX is apparently ignored. (You don’t get two additional config files, just the one.)
MYAPP_CONFIG_LOCAL_SUFFIX applies only to MyApp, where CATALYST_CONFIG_LOCAL_SUFFIX will be applied to any Catalyst app. Be careful with it. (more…)
