[Catalyst] ConfigLoader and components
Adam Jacob
adam at stalecoffee.org
Wed May 10 17:20:43 CEST 2006
On May 10, 2006, at 12:09 AM, Nathan Kurz wrote:
> On Tue, May 09, 2006 at 10:40:52PM -0600, Nathan Kurz wrote:
>> I've been beating my head against this for an hour now, and think I
>> must be missing something. How can I use ConfigLoader to let me set
>> the database dsn in myapp.yml, and pass that along to the component
>> I'm deriving from Catalyst::Model::DBIC::Schema?
>
> Silly me. It turned out that I had deleted Makefile.PL to make the
> sample code simpler, and obviously this causes $config->{home} to be
> set one subdirectory deeper than it otherwise would. So all I needed
> to do was move my app.yml file into 'lib' and things started working.
>
> Nothing wasted by a few hours of my time... :(
You can always set CATALYST_HOME in your environment, having that
point at the top level directory.
Adam
More information about the Catalyst
mailing list