[Catalyst] ConfigLoader: Loading two files

Matt S Trout dbix-class at trout.me.uk
Thu Mar 23 02:09:29 CET 2006


Christopher H. Laco wrote:
> 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

Lets have a configurable list thereof. Then unix-heads like myself could setup 
/etc/myapp.yml, /usr/local/etc/myapp.yml, &c, &c

-- 
      Matt S Trout       Offering custom development, consultancy and support
   Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +



More information about the Catalyst mailing list