[Dbix-class] connecting to different environments

Devin Austin devin.austin at gmail.com
Fri Sep 9 20:53:49 GMT 2011


On Fri, Sep 9, 2011 at 2:51 PM, Ben Tilly <btilly at gmail.com> wrote:
> DBIx::Class::Schema::Config gives one solution.
>
> On Fri, Sep 9, 2011 at 8:30 AM, 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”?
>>
>>
>>
>> Thanks!
>>
>>
>>
>> -          Alan
>>
>> _______________________________________________
>> List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
>> IRC: irc.perl.org#dbix-class
>> SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
>> Searchable Archive:
>> http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk
>>
>
> _______________________________________________
> List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
> Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk
>

I like to use MYAPP_CONFIG_LOCAL_SUFFIX set in the environment, as you
can transition flawlessly from web app to backend worker or non-web
app environments whilst using the same config options.

-- 
Devin Austin
http://www.codedright.net
9702906669 - Cell



More information about the DBIx-Class mailing list