Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Directory Structures

by Ryszard (Priest)
on Jan 30, 2003 at 06:43 UTC ( [id://231214]=note: print w/replies, xml ) Need Help??


in reply to Directory Structures

My devel and production environments are pretty much the same, what we do is dev -> cvs -> release -> production. What we're missing is an integration environment which we can package up our code to deploy.

The structure I work with is:

..../apache/cgi-bin/tools/app lib log tmpl nodelets

As the main concept is a web-based platform there are multiple applications under app and the applications corresponding templates under tmpl.

Underneath nodelets are applications that are to be displayed on every web page, such as a Weather.pm or login statistics, or any other arbitrary application.

Our platform design abstracts the presentation/business logic layer from the implementation specific details (such as SQL query's et al), and as such lib will contain domain specific libraries that relate to one or more of the applications under app (for example fetching financial information for business units across the organisation ....lib/Finance/BU.pm). Of course also in lib are the platform libraries that drive the website.

In the case where we have an application that required coupling with a daemon we may include a daemon directory at the same level as app. This has the advantage of being able to leverage of the existing libraries, log structure etc etc without having to maintain to separate copies of the code (in cases where a daemon must use an existing library).

While the daemon option is not really a perfect scenario (i believe an dedicated application server should be used for this), it works quite well and keeps the maintaince down in the absence of a formalised/automated deployment architecture.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://231214]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-26 00:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found