[Catalyst] ConfigLoader: Loading two files
Christopher H. Laco
claco at chrislaco.com
Tue Mar 21 21:07:46 CET 2006
I'm in the spot where I'd like to load two config files: myapp.yml and
local.yml. I'm quite sick and tired of moving dev code to the server and
forgetting (Or having to) to change some things in the config (think dsn
host= vs. socket=). :-)
There are various LoadFile incantations that could be used as well as
if-$c->config hackeries, but I'm interested in something more proper.
Would anyone be overly distraught at tweaking ConfigLoader to look for both:
myapp.yml
myapp_local.yml
?
-=Chris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20060321/df11757a/attachment.pgp
More information about the Catalyst
mailing list