This document describes the procedure for updating BellaDati running on Tomcat, GlassFish/Payara or Jetty application servers. If you are trying to install BellaDati on these servers, please follow the instructions on Installing BellaDati manually pages instead. |
We strongly recommend to perform a database backup before deploying the BellaDati update. |
To deploy the belladati.war
, simply copy the WAR archive into the appropriate directory, replacing the existing file.
Deploying the update depends on the type of application server you are using:
Tomcat users have to stop the running server instance and replace the old belladati.war
file with the new one. We recommend to cleanup the working directory $TOMCAT_HOME/work
and remove old application directory $TOMCAT_HOME/webapps/belladati/
.
Jetty users have to stop the running server instance and replace the old belladati.war
file with the new one.
GlassFish/Payara users have several options how to deploy the new belladati.war
. The simplest way is to use the administration console (by default at port 4848). Click Applications on the left side, then the action Redeploy next to your BellaDati deployment. Select the new WAR file to update your installation.
Deploying on Glassfish/Payara
Standard BellaDati installation (installer script used) implements GlassFish (or Payara for newer BellaDati version) application server
If you upgrade over version 2.10 See additional informations here |
Procedure how to deploy belladati.war :
CLI example
environment : war BellaDati version 2.9.21 , GlassFish application server version 5.0.1, BellaDati installation directory is /opt/BellaDati/:
root@ip-172-31-28-125:~/installation# unzip BellaDati-2_9_21.war.zip Archive: BellaDati-2_9_21.war.zip inflating: belladati.war root@ip-172-31-28-125:~/installation# /opt/BellaDati/glassfish5/bin/asadmin undeploy Enter the value for the name operand> belladati Command undeploy executed successfully. root@ip-172-31-28-125:~/installation# /opt/BellaDati/glassfish5/bin/asadmin restart-domain Successfully restarted the domain Command restart-domain executed successfully. root@ip-172-31-28-125:~/installation# /opt/BellaDati/glassfish5/bin/asadmin deploy --virtualservers server --contextroot / --name belladati belladati.war Application deployed with name belladati. Command deploy executed successfully. root@ip-172-31-28-125:~/installation# /opt/BellaDati/glassfish5/bin/asadmin restart-domain Successfully restarted the domain Command restart-domain executed successfully. root@ip-172-31-28-125:~/installation# /opt/BellaDati/glassfish5/bin/asadmin list-applications belladati <web> Command list-applications executed successfully. |