frequent updates of a Tomcat application
- by Erel Segal Halevi
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:
Build a new war file;
Go to the Windows server, stop the Tomcat service;
download the file, put it under webapps;
Remove the old application folder under webapps;
Remove the old application folder under work/Catalina/localhost (otherwise it keeps the old version cached).
Restart the Tomcat service.
I am sure there is a way to do all this automatically. What is it?