Deploy application

So, you went through the one time setup and all is working. But now there is an update. What do you do?

First, get the update of course. It will be a file called "root.war". Download it to your server, to let's say /tmp/root.war.

Now perform the following steps:

  1. /etc/init.d/jetty stop
  2. mv /usr/local/jetty/webapps/root.war somewhere else as a backup in case Things Go Wrong
  3. cp /tmp/root.war /usr/local/jetty/webapps/root.war  
  4. /etc/init.d/jetty start
  5. /etc/init.d/apache2 restart

 

Step 5 forces Apache to reconnect right away to Jetty - it may take 5-010 seconds otherwise. So if you do 5) really depends on the load/maintenance window etc. And that's all it takes to upgrade!