[Catalyst] Duplicating a Catalyst app

Bill Moseley moseley at hank.org
Fri Jun 10 21:21:23 GMT 2011

I have an app "Foo" and would like to make a new application based on it
called "Bar".

Bar will get a new design and templates, and will have many of the same
controller actions.  But, I expect over time the two apps will drift apart
in functionality.  Different people will maintain Foo and Bar apps.

Is there a better approach than making a copy and s/Foo/Bar/g in most
directories (lib, t)?

I first thought I'd pull out the controllers from the original Foo and turn
them into roles, and then just use the roles in both applications, but I'm
not sure we want to share code like for the risk of a change in one role is
not wanted in the other (and is missed by testing).

The other option, of course, is to keep one app and have it run with
different configurations and different "root" directory (so separate css,
js, templates, etc).  But, again, then have to think about how to manage
changes that only effect one app.


-- =

Bill Moseley
moseley at hank.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20110610/79b07=

More information about the Catalyst mailing list