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

Mailing List Archive: Catalyst: Users

Model config not being loaded

 

 

Catalyst users RSS feed   Index | Next | Previous | View Threaded


dfx at dfx

Oct 14, 2008, 3:40 AM

Post #1 of 3 (481 views)
Permalink
Model config not being loaded

Hi,

I'm having problems getting the config for a custom DBI based model module
loaded from my config file. The module starts off with

package Timerec::Model::DB;
use strict;
use base 'Catalyst::Model::DBI';
use POSIX;
__PACKAGE__->config(
dsn => "dbi:mysql:timerec",
user => "timerec",
password => "foobar",
);

Now i want to move this into my config file (timerec.conf), in which I put:

<Model DB>
dsn dbi:mysql:timerec
user timerec
password foobar
</Model>

This works fine on my local development machine, but doesn't work on the
deployment server. The software versions are slightly older on the server
(Catalyst 5.7006 on Perl 5.8.8, as opposed to Catalyst 5.7014 on Perl 5.10).
I'm looking for hints as to what could be wrong or how I could work around
this problem...

Thanks in advance!
Richard
--
View this message in context: http://www.nabble.com/Model-config-not-being-loaded-tp19958254p19958254.html
Sent from the Catalyst Web Framework mailing list archive at Nabble.com.


_______________________________________________
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/


brian.cassidy at gmail

Oct 14, 2008, 4:04 AM

Post #2 of 3 (436 views)
Permalink
Re: Model config not being loaded [In reply to]

On Tue, Oct 14, 2008 at 7:40 AM, dfx <dfx[at]dfx.at> wrote:
> This works fine on my local development machine, but doesn't work on the
> deployment server. The software versions are slightly older on the server
> (Catalyst 5.7006 on Perl 5.8.8, as opposed to Catalyst 5.7014 on Perl 5.10).
> I'm looking for hints as to what could be wrong or how I could work around
> this problem...

Is Config::General installed on the server?

-Brian

_______________________________________________
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/


dfx at dfx

Oct 14, 2008, 4:31 AM

Post #3 of 3 (440 views)
Permalink
Re: Model config not being loaded [In reply to]

Brian Cassidy-2 wrote:
>
> On Tue, Oct 14, 2008 at 7:40 AM, dfx <dfx[at]dfx.at> wrote:
>> This works fine on my local development machine, but doesn't work on the
>> deployment server. The software versions are slightly older on the server
>> (Catalyst 5.7006 on Perl 5.8.8, as opposed to Catalyst 5.7014 on Perl
>> 5.10).
>> I'm looking for hints as to what could be wrong or how I could work
>> around
>> this problem...
>
> Is Config::General installed on the server?
>
> -Brian
>
>

Hi,

yes, sorry for not mentioning this. In fact the section from the config file
appears in the $c->config hash in both cases (under the key "Model::DB") as
expected.

Thanks,
cheers
Richard
--
View this message in context: http://www.nabble.com/Model-config-not-being-loaded-tp19958254p19971660.html
Sent from the Catalyst Web Framework mailing list archive at Nabble.com.


_______________________________________________
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/

Catalyst users RSS feed   Index | Next | Previous | View Threaded
 
 


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