johnnywang has asked for the wisdom of the Perl Monks concerning the following question:

Hi, there is a standard directory layout for java web-apps, there is also a standard packaging: a .war file with something like:
   appname
       /WEB-INF
           /classes
           /lib
Other contents such as html/image/jsp can be place in some structure under appname.

I'v been going back and forth for my perl-based web apps: currently using mod_perl/Template-Toolkit. In most current app, I've created my own lib directly where I put all my perl modules, and "use lib" in a mod_perl start up file; and I put my TT template in some directly under DocRoot, parallel to html/images. All these work fine, but I always feel it's very adhoc. Some questions I have are:

This is related to: make/deploy tool for perl scripts. Hopefully this is more specific. Thanks.
  • Comment on Standard packaging/deployment layout for web apps

Replies are listed 'Best First'.
Re: Standard packaging/deployment layout for web apps
by perrin (Chancellor) on Sep 15, 2004 at 12:46 UTC
    Take a look at how the Krang CMS handles this. Download a source distribution and run the build script and you will get the idea.