Common application models

Hey all

I have the situation where i will be building 3 seperate applications
that use the same database; and hence the same models.

As I dont really want to duplicate that code for the models, is there a
way to make it common? They will all be held on the same application
server

Thanks guys

Tim

Tim P. wrote:

Hey all

I have the situation where i will be building 3 seperate applications
that use the same database; and hence the same models.

As I dont really want to duplicate that code for the models, is there a
way to make it common? They will all be held on the same application
server

Thanks guys

Tim

symbolic links?

This was my initial thought but i was not sure that it would work? Have
you ever tried this?

Also, it might mess up capistrano deployment - or there would need to be
a bespoke recipe at least i would have thought

What do you think?

Ilan B. wrote:

symbolic links?

As you use Capistrano, I assume that you use SVN for deployment, too.

I often use svn:externals for such tasks. Create a shared repository for
all the shared models and use them as external whenever needed. We use
this at work for our plugin-management, it is a simple approach that
works quite well.

Florian G. wrote:

As you use Capistrano, I assume that you use SVN for deployment, too.

I often use svn:externals for such tasks. Create a shared repository for
all the shared models and use them as external whenever needed. We use
this at work for our plugin-management, it is a simple approach that
works quite well.

Ahh good plan, i will have a lookinto this.

Thanks for the suggestion :slight_smile:

Tim