I've attached a screenshot of a project's SVN repository, hopefully
it'll make it through to the list.  It was created with roughly these
steps:

 - unzip tomcat
 - empty webapps/ROOT
 - unzip cfusion.jar into webapps/ROOT
 - add svn:ignore for various bits (the cfclasses directory's
contents, for example)
 - check the webapps/ROOT into subversion
 - start building the app (which is the source of all the other
directories and files you see).
 - check the code in

Then for deployment, we pretty much just do an export from SVN, and
rsync it out to the destination server(s).  We also manage ALL the
administrative settings via the admin API, so they are completely
reset upon each application startup, eliminating any requirement to
carefully manage the neo-xxx.xml files.

We have a couple CF builds that we version separately so the "unzip
cfusion.jar" step above was really "export CF from SVN" as a starting
point.  That just gives us a central place to manage all our CF
setups.  In this particular case, it was a CF/Magnolia hybrid
basically created by overlaying the Magnolia jars atop an unzipped
cfusion.jar, plus a few custom classes we wrote to make them play
nicely.

cheers,
barneyb

On Wed, Oct 7, 2009 at 12:47 PM, Jeff Chastain <[email protected]> wrote:
>
> I was mistaken on the Railo front - that server was setup a while back.  For
> Railo, it was deployed according to Sean Corfield's Multi-Web setup
> (http://corfield.org/blog/index.cfm/do/blog.entry/entry/Railo_on_Tomcat__mul
> tiweb) which adds the Railo jar files to the common.loader path and then
> defines the servlets and servlet-mappings within the main web.xml file.
> With that said, once this process is complete, all you have to do is add a
> new host definition in the server.xml and you have a new site without
> copying a bunch of files.  Railo will add a WEB-INF folder to that new site,
> but it is only a couple of MB.
>
> So, for your configuration, does the SVN repo you referred to contain the
> full CFIDE, META-INF, and WEB-INF folders which go into the web root of
> every project?  Would you mind sharing the contents / structure of your
> template project as that sounds exactly like what I am trying to setup?
>
> Thanks
> -- Jeff
>
>
> -----Original Message-----
> From: Barney Boisvert [mailto:[email protected]]
> Sent: Wednesday, October 07, 2009 11:51 AM
> To: cf-talk
> Subject: Re: Deploying ColdFusion to Tomcat Server
>
>
> I don't see how that could possible be the case for Railor or
> BlueDragon.  All three engines operate in exactly the same way: a
> servlet mappings for .cfm and .cfc files that run a servlet from the
> local context.  They all have to be copied into each context they're
> needed.
>
> Can we see your tomcat config for a working one and a non-working one?
>  I suspect that's where the discrepancy is.
>
> All said, having each app with it's own CFML runtime is rather
> desirable in my opinion, and the couple hundred MB of space is hella
> cheap.  All the projects we do at work are WAR-level packages; you
> check out from SVN and includes all the code, a full CFML runtime,
> possible a CMS runtime, etc.  Deployment happens the same way.  Makes
> things enormously easier because it eliminates and potential
> discrepancies between various environments.
>
> cheers,
> barneyb
>
> On Wed, Oct 7, 2009 at 7:52 AM, Jeff Chastain <[email protected]> wrote:
>>
>> In my development environment, I currently have Railo and Blue Dragon
>> deployed to separate Tomcat servers.  Setting this up was simply a matter
> of
>> dropping the war file into the webapps folder and doing a little bit of
>> renaming to make it the root web app.  Then I could create new hosts and
>> they all recognized the respective ColdFusion engine with no additional
>> copying of files or configuration changes.
>>
>>
>>
>> Then I get to Adobe CF.  I have gone through the installer and generated
> the
>> EAR file, which once expanded, includes a single cfusion.war file with
> both
>> RDS and ColdFusion (I think).  I attempted to deploy this war file to a
> new
>> Tomcat server in the same manner as before, renaming it to ROOT.  If I
>> address the server via http://localhost, then I can access CFIDE, etc.
>> However, if I create a new host, it has no visibility to the ColdFusion
>> engine.  CFIDE does not exist and ColdFusion scripts are not processed.
>  The
>> only way I have been able to make this work is to copy the CFIDE, WEB-INF,
>> and META-INF folders from the war file into the web root of each
> individual
>> host.   Not only is this very heavy on the file system but it is a pain.
>>
>>
>>
>> Am I missing something in the setup of ColdFusion on Tomcat here?
>>
>>
>>
>> Thanks
>>
>> -- Jeff
>>
>>
>>
>>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327004
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to