On Thu, Jan 27, 2011 at 12:54 PM, Matthew Woodward wrote:
> On Thu, Jan 27, 2011 at 11:37 AM, Carl Von Stetten wrote:
>>
>> Yes, or better yet, copy the WEB-INF folder to /medapp/med.
>
> I typically use Tomcat but I think copying WEB-INF over there as well will
> make things much much easier.
> Bottom line is you can arrange all this stuff however you want with various
> combinations of file locations and rewrite rules, but the simplest approach
> is to have WEB-INF *and* your application files all in the same place.

Yuppers!

The way I do it, is for development, I use a customized Jetty context
that lets me keep WEB-INF wherever I like.  This keeps my source tree
clean (for some reason, having WEB-INF in my source root bugs me, even
though I could ignore it) and helps me verify my builds (every build
wipes out the old WEB-INF and does everything "fresh", so there are no
potentially old artifacts).

I keep all the datasource, mapping, debug, cache,  email settings,
etc. in XML files that are used by the build tool, so I can have
various setups for local dev, dev, QA, and production.

This lets me do stuff like turn off debugging and compress javascript,
etc., for production builds.  Production builds result in a WAR file
that I can then deploy to Tomcat, JBoss, Glassfish, etc..

If I need "instant" publishing of my CFML to a remote server (usually
dev), I've started using Git and commit hooks so I don't have to
upload the whole WAR to let the rest of the world see my changes.

I love being able to produce a WAR that's all set up for production by
typing "ant build.production".  =)

:Den

-- 
To endure is the first thing that a child ought to learn, and that
which he will have the most need to know.
Jean Jacques Rousseau

-- 
Open BlueDragon Public Mailing List
 http://www.openbluedragon.org/   http://twitter.com/OpenBlueDragon
 official manual: http://www.openbluedragon.org/manual/
 Ready2Run CFML http://www.openbluedragon.org/openbdjam/

 mailing list - http://groups.google.com/group/openbd?hl=en

Reply via email to