[Catalyst] question about sharing models with different applications/hosts

Matt S Trout dbix-class at trout.me.uk
Thu Jul 19 22:09:27 GMT 2007


On Thu, Jul 19, 2007 at 03:29:38PM -0400, Barry Hoggard wrote:
> I'm investigating migrating an art website hosting service
> (www.artcat.com) from CGI::Application under mod_perl to Catalyst.
> There are 2 parts to the application -- the admin interface for
> clients and the application that serves the pages.  Eventually the two
> may be served on different servers, such as clientsite.com and
> admin.artcat.com.  They would need to use the same model classes of
> course.
> 
> What is considered the best way to do this now?  One catalyst app with
> different vhosts and URL rewriting, or some kind of shared repository
> for the lib directory, or something else?

I'd tend to use one DBIC schema with the domain logic in it and two apps.

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director    Want a managed development or deployment platform?
 Shadowcat Systems Ltd.  Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/             http://www.shadowcatsystems.co.uk/ 



More information about the Catalyst mailing list