[Dbix-class] connecting to different environments

Trevor Leffler tleffler at uw.edu
Fri Sep 9 21:29:21 GMT 2011


Trevor Leffler wrote:
> Rob Kinyon wrote:
>> On Fri, Sep 9, 2011 at 11:30, Alan Humphrey 
>> <alan.humphrey at comcast.net> wrote:
>>> Hi –
>>>
>>> I’m wondering how people are handling connecting to different databases,
>>> e.g. dev vs. test vs. production.  Is there a technique that’s 
>>> considered
>>> “best practice”?
>>
>> Configuration files are good things. Just swap in the right config
>> file for a given environment.
>>
>> Rob
> 
> I'd like to +1 config files for handling things like this, and follow up 
> with a config scheme that I've used; try it out, adapt, etc...
[...snip...]

Hi, Alan.

Maybe some day my brain won't "synonymize" DBIx::Class with Catalyst. 
Beyond "use a good config system," my post is likely completely useless 
to you!  But really, use a config system that works for you.  ;)

Abashed,
--Trevor




More information about the DBIx-Class mailing list