frequent updates of a Tomcat application

Posted by Erel Segal Halevi on Stack Overflow See other posts from Stack Overflow or by Erel Segal Halevi
Published on 2012-03-18T15:33:07Z Indexed on 2012/03/18 17:56 UTC
Read the original article Hit count: 221

I have an application that runs on a Tomcat 7 server on a Windows machine. In its current stage, I have to frequently update and fix it. Whenever I need to update the application, I do all this:

  1. Build a new war file;
  2. Go to the Windows server, stop the Tomcat service;
  3. download the file, put it under webapps;
  4. Remove the old application folder under webapps;
  5. Remove the old application folder under work/Catalina/localhost (otherwise it keeps the old version cached).
  6. Restart the Tomcat service.

I am sure there is a way to do all this automatically. What is it?

© Stack Overflow or respective owner

Related posts about web-applications

Related posts about deployment