On Fri, Sep 9, 2011 at 2:51 PM, Ben Tilly <[email protected]> wrote: > DBIx::Class::Schema::Config gives one solution. > > On Fri, Sep 9, 2011 at 8:30 AM, Alan Humphrey <[email protected]> > 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/[email protected] >> > > _______________________________________________ > 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/[email protected] >
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 _______________________________________________ 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/[email protected]
