Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users
ConfigLoader trouble
 

Index | Next | Previous | View Flat


ben-catalyst at vinnerd

Jun 17, 2009, 2:52 AM


Views: 694
Permalink
ConfigLoader trouble

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'} = {file =>
'/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[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Subject User Time
ConfigLoader trouble ben-catalyst at vinnerd Jun 17, 2009, 2:52 AM
    Re: ConfigLoader trouble devin.austin at gmail Jun 17, 2009, 2:57 AM
    Re: ConfigLoader trouble joel at fysh Jun 17, 2009, 3:02 AM
        Re: ConfigLoader trouble ben-catalyst at vinnerd Jun 17, 2009, 3:16 AM
            Re: ConfigLoader trouble bobtfish at bobtfish Jun 18, 2009, 12:57 AM
                Re: ConfigLoader trouble ben-catalyst at vinnerd Jun 18, 2009, 7:26 AM
    Re: ConfigLoader trouble ben-catalyst at vinnerd Jun 17, 2009, 3:13 AM
        Re: ConfigLoader trouble devin.austin at gmail Jun 17, 2009, 3:15 AM
    Re: ConfigLoader trouble ben-catalyst at vinnerd Jun 17, 2009, 3:21 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.