You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Sean LeBlanc <se...@nutros.com> on 2002/05/09 23:22:44 UTC

Best practices for deployment?

I'm trying to figure out the best way to deploy an application...I see the manager application
has a way to deploy the application, but the war file or tree has to be on the server deployed to,
correct? What do you guys do in testing and/or production environments? Make a tarball and
scp or ftp it over, and then untar there? 

It'd be *really* cool to get Ant to automate a deploy to Tomcat if possible.

Thanks,
Sean

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Best practices for deployment?

Posted by Jeff Larsen <la...@qec.com>.
I pack it up in a war file, ftp it to the server (UNIX), create an
"at" job for late at night which runs a script that stops tomcat,
unpacks the war file and restarts tomcat.

I've had spotty results with reloading a newly unpacked app while tomcat
is still running.

Jeff

----- Original Message -----
From: "Sean LeBlanc" <se...@nutros.com>
To: <to...@jakarta.apache.org>
Sent: Thursday, May 09, 2002 4:22 PM
Subject: Best practices for deployment?


> I'm trying to figure out the best way to deploy an application...I see the manager
application
> has a way to deploy the application, but the war file or tree has to be on the server
deployed to,
> correct? What do you guys do in testing and/or production environments? Make a tarball
and
> scp or ftp it over, and then untar there?
>
> It'd be *really* cool to get Ant to automate a deploy to Tomcat if possible.
>
> Thanks,
> Sean
>
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Best practices for deployment?

Posted by Jay Gardner <gj...@qwest.net>.
This is cool!

-----Original Message-----
From: Craig R. McClanahan [mailto:craigmcc@apache.org]
Sent: Thursday, May 09, 2002 4:00 PM
To: Tomcat Users List; sean@nutros.com
Subject: Re: Best practices for deployment?


On Thu, 9 May 2002, Sean LeBlanc wrote:

> Date: Thu, 9 May 2002 15:22:44 -0600
> From: Sean LeBlanc <se...@nutros.com>
> Reply-To: Tomcat Users List <to...@jakarta.apache.org>,
sean@nutros.com
> To: tomcat-user@jakarta.apache.org
> Subject: Best practices for deployment?
>
> I'm trying to figure out the best way to deploy an application...I see
> the manager application has a way to deploy the application, but the war
> file or tree has to be on the server deployed to, correct? What do you
> guys do in testing and/or production environments? Make a tarball and
> scp or ftp it over, and then untar there?
>
> It'd be *really* cool to get Ant to automate a deploy to Tomcat if
> possible.
>

Look no farther than the 4.1.1 test release (or any very recent nightly
build), and you will get both of these wishes granted:

* Includes custom Ant tasks that interact with the Manager webapp.

* The "/deploy" command (and corresponding <deploy> task) can upload
  a war file to a remote Tomcat server.

> Thanks,
> Sean

Craig


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Best practices for deployment?

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Thu, 9 May 2002, Sean LeBlanc wrote:

> Date: Thu, 9 May 2002 15:22:44 -0600
> From: Sean LeBlanc <se...@nutros.com>
> Reply-To: Tomcat Users List <to...@jakarta.apache.org>, sean@nutros.com
> To: tomcat-user@jakarta.apache.org
> Subject: Best practices for deployment?
>
> I'm trying to figure out the best way to deploy an application...I see
> the manager application has a way to deploy the application, but the war
> file or tree has to be on the server deployed to, correct? What do you
> guys do in testing and/or production environments? Make a tarball and
> scp or ftp it over, and then untar there?
>
> It'd be *really* cool to get Ant to automate a deploy to Tomcat if
> possible.
>

Look no farther than the 4.1.1 test release (or any very recent nightly
build), and you will get both of these wishes granted:

* Includes custom Ant tasks that interact with the Manager webapp.

* The "/deploy" command (and corresponding <deploy> task) can upload
  a war file to a remote Tomcat server.

> Thanks,
> Sean

Craig


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>