Tomcat .war deployment and rollback

deploymenttomcat

I have a ROOT.war file which I used to deploy version 1 of my web site. I now rename this file to be ROOT_v1.war and set it aside. Then I do some changes and create a new ROOT.war file and deploy it.

If I want to do a rollback, will it be enough to just rename and copy ROOT_v1.war back to the server?

Or do I need to update its date? Or do the dates that count are those of the files inside it?

Best Answer

To be sure, I would undeploy the application, check my tomcat/webapps/ folder for any traces of the application having been left & then deploy the 'original' application.