I followed the following steps
As I use maven to generate my builds in tomcat inside a ubuntu box, I have a script called
install_wars.sh
With the following content:
mvn clean install
service tomcat7 stop
find /var/lib/tomcat7/webapps/ -mindepth 1 -maxdepth 1 -type d -exec rm -rf {} \;
find . -name *.war -exec cp {} /var/lib/tomcat7/webapps/ \;
service tomcat7 start
You may want to change the path and maven commands accordingly.
The tomcat stop/start are there to avoid any memory leaks that can make the application slow after several redeploys.