[Catalyst] ConfigLoader trouble

Devin Austin devin.austin at gmail.com
Wed Jun 17 09:57:23 GMT 2009


What's the error you're getting?

On Wed, Jun 17, 2009 at 3:52 AM, Ben Vinnerd <ben-catalyst at vinnerd.com>wrot=
e:

> Hi all,
>
> Have got a problem with ConfigLoader not reading %ENV.
>
> At the top of Myapp.pm i have:
>
> use parent qw/Catalyst/;
> use Catalyst qw/StackTrace ConfigLoader/;
>
> ...and i'm setting env var in httpd.conf:
>
> PerlSetVar MYAPP_CONFIG_LOCAL_SUFFIX beta
>
> ... but ConfigLoader will not load myapp_beta.conf from the application
> dir.
>
> I have output the contents of %ENV to my Apache log, and
> MYAPP_CONFIG_LOCAL_SUFFIX is there.
>
> I'm stumped, as i have this working on another machine.
>
> If i manually set ConfigLoader's file option, it loads the config fine:
>
> __PACKAGE__->config->{'Plugin::ConfigLoader'} =3D {file =3D>
> '/home/ben/Myapp/myapp_beta.conf'};
>
> Any ideas?
>
> Ben
>
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>



-- =

Devin Austin
http://www.codedright.net
http://www.dreamhost.com/r.cgi?326568/hosting.html - Host with DreamHost!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20090617/93ad2=
fa8/attachment.htm


More information about the Catalyst mailing list