Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Sv translation
languageen


Info

This document describes the procedure for updating BellaDati running on Tomcat, GlassFish or Jetty application servers. If you are trying to install BellaDati on these servers, please follow the instructions on Installing BellaDati manually pages instead.

Deploying BellaDati WAR

Tip

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 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

Standard BellaDati installation (installer script used)  implements  GlassFish (or Payara for newer BellaDati version) application server

Note

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/:


Info
titlelinux-glassfish deploying

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.














Sv translation
languageja
Info

このドキュメントはTomcatGlassFishまたはJettyアプリケーションサーバー上で実行されているBellaDatiを更新するための手順を説明します。これらのサーバー上BellaDatiをインストールしようとしている場合は、Installing BellaDati WARページでの指示に従ってください

BellaDati WAR構成 

Tip

BellaDati2.7.13または以上を実行している場合、WARファイルを更新する必要はありません。

ダウンロードしたWARアーカイブは、デフォルト設定でapplication.propertiesファイルが含まれています。更新を開始する前に、この設定ファイルを修正するためにこれらの簡単な手順に従ってください。

1. Linuxの解凍ツール、Windows7-Zipなどなツールを使用してWARファイルからapplication.propertiesファイルを解凍します。

Code Block
unzip belladati.war WEB-INF/classes/conf/application.properties

2. 解凍されたapplication.propertiesファイルの設定を編集します。既存のインストールからapplication.propertiesファイルを参照して、現在の設定を調べることができます。

Info

構成設定はBellaDati WAR設定の概要で詳しく説明されています。

3. WEB-INF/classes/conf/application.properties設定ファイルを保存し、WARアーカイブを更新します。 Linuxでは、コマンドは次のようにします。

Code Block
zip -d belladati.war WEB-INF/classes/conf/application.properties
zip -u belladati.war WEB-INF/classes/conf/application.properties

BellaDati WARの展開 

Tip

BellaDatiの更新を展開する前に、データベースのバックアップを実行することをお勧めします。

 

belladati.warを展開するには、単に既存のファイルを置き換え、適切なディレクトリにWARアーカイブをコピーします。 

 

更新プログラムを展開すると使用しているアプリケーション・サーバーのタイプによって異なります。 

 

Tomcatのユーザーが実行中のサーバーインスタンスを停止し、新しいものと古いbelladati.warファイルを交換する必要があります。$TOMCAT_HOME/work ファイルをクリーンアップお勧めします、古いアプリケーションディレクトリ$TOMCAT_HOME/webapps/belladati/を削除します。 

 

Jettyユーザーが実行中のサーバーインスタンスを停止し、新しいものと古いbelladati.warファイルを交換する必要があります。 

GlassFishユーザーには、新しいbelladati.warのデプロイ方法がいくつかあります。最も簡単な方法は、管理コンソールを使用することです(ポート4848デフォルトとおりに)。左側の「アプリケーション」をクリックし、次にBellaDatiデプロイメントの横にある「再デプロイ」アクションをクリックします。それからあなたのインストールを更新するための新しいWARファイルを選択します。

Linuxの解凍ツール、Windows7-Zipなどなツールを使用してWARファイルからapplication.propertiesファイルを解凍します。

...