SVN project folder tree structure vs production folder tree structure
Posted
by Marco Demaio
on Stack Overflow
See other posts from Stack Overflow
or by Marco Demaio
Published on 2010-06-16T09:31:43Z
Indexed on
2010/06/16
10:32 UTC
Read the original article
Hit count: 523
While developing a PHP+JS web application we always try to separate big blocks of code into small modules/components, in order to make these last ones as much reusable as possible in other applications.
Let's say we now have:
- the
EcommerceApp
(an ecommerce main application) - a
Server-file-mgr
component (a component to view/manage file on server) - a
Mylib
(a library of useful functions) - a
MailistApp
(another main application to handle mail lists)
...
EcommerceApp
needs bothServer-file-mgr
component andMylib
to workServer-file-mgr
needsMylib
to workMaillistApp
needs bothServer-file-mgr
component andMylib
to work too.
My idea is to simply structure the SVN project folder tree putting everything at the same level:
trunk/EcommerceApp
trunk/Server-file-mgr
trunk/Mylib
trunk/MaillistApp
But in real life to make these apps to work the folder tree structure must be the following:
EcommerceApp
|_ Mylib
|_ Server-file-mgr
MaillistApp
|_ Mylib
|_ Server-file-mgr
I mean Mylib
and Server-file-mgr
needs to be inside the EcommerceApp/MaillistApp
folder.
How would you then structure the SVN folder, as I did or in a different/better/smarter way???
© Stack Overflow or respective owner