How to update the Discovery/Tomcat Talia installation

This is fairly easy, just follow the following steps:

$ ssh talia_server
$ cd /Library/WebServer/the_talia_directory
$ sudo -s ./talia.sh shell
$ export RAILS_ENV=production
$ git pull
$ rake discovery:deploy_war vhost_dir=/Library/Tomcat/webapps/my_talia_installation_tomcat_dir
$ ps aux | grep -i Tomcat
...
$ kill <tomcat_pid>