Deploying the web application
Complete the following steps for each Web Services node.
Start
- Copy the installation_CD/ gws-<version>.noarch.rpm file to a local folder.
- If --prefix is not specified, the default installation location is /usr/share folder.
- Perform the installation using the RPM package manager:
- rpm -ivh [--prefix installation_location] gws-<version>.noarch.rpm
- Copy the *.sample files from the /installation_path/gws/config/config-templates directory to the /installation_path/gws/config directory and remove the .sample extension.
- More information about these files is located in Configuring Web Services settings, which is your next step after deploying the web application.
- Run following command to register the new service on your host: chkconfig gws on
- Configure Web Services and Applications <link to configuration guide>.
- Proceed to Starting and Testing Web Services.
End
[+] Click here to view the contents of the RPM package
Installation package files
The RPM file creates the following configuration files and initialization scripts during the installation:
File/folder name
|
Description
|
Files for starting Web Services as a system service on Red Hat Enterprise Linux 6
|
/etc/default/gws
|
The configuration file for the Web Services service on Red Hat Enterprise Linux 6 platform.
|
/etc/init.d/gws
|
The initialization script for the Web Services service on Red Hat Enterprise Linux 6 platform.
|
Files for starting Web Services as a system service on Red Hat Enterprise Linux 7
|
/usr/bin/gws
|
The initialization script for the Web Services service on Red Hat Enterprise Linux 7 platform.
|
/usr/lib/systemd/system/gws.service
|
The default configuration file for the Web Services service on Red Hat Enterprise Linux 7 platform.
|
/usr/lib/systemd/system/gws.service.d/gws.conf
|
The custom configuration file for the Web Services service. The settings defined in this file override the default settings.
|
Extended service functionality on Red Hat Enterprise Linux 7 platform
|
/usr/libexec/initscripts/legacy-actions/gws/config
|
|
/usr/libexec/initscripts/legacy-actions/gws/version
|
|
Web Services and Application Files
|
/installation_path/gws
|
The home directory of Web Services and Applications.
|
/installation_path/gws/gws.jar
|
The application .jar file.
|
GWS Configuration Files
|
/installation_path/gws/config
|
The folder containing configuration files of Web Services and Applications, including:
- /installation_path/gws/config/feature-definitions.json
- /installation_path/gws/config/hystrix.properties
- /installation_path/gws/config/logback.xml
|
GWS Configuration Files
|
/installation_path/gws/config-templates
|
The folder that contains templates of the Web Services and Applications configuration files. After installation, files from the folder must be modified according to Web Services and Applications Configuration Guide and moved to /installation_path/gws/config. The templates include:
- /installation_path/gws/config-templates/application.yaml.sample
- /installation_path/gws/config-templates/elasticsearch.yml.sample
- /installation_path/gws/config-templates/statistics.yaml.sample
|
Cassandra schema
|
/installation_path/gws/data
|
The folder that contains scripts to deploy database schema. Files include:
- Scripts for Cassandra schema deployment using the cqlsh tool:
- /installation_path/gws/data/ks-schema-local.cql
- /installation_path/gws/data/ks-schema-prod.cql
- /installation_path/gws/data/ks-schema-prod_HA.cql
- /installation_path/gws/data/cf-schema.cql
- Scripts for Cassandra schema deployment using the cassandra-cli tool:
- /installation_path/gws/data/ks-schema-local.txt
- /installation_path/gws/data/ks-schema-prod.txt
- /installation_path/gws/data/ks-schema-prod_HA.txt
- /installation_path/gws/data/cf-schema.txt
|
Elastic search templates
|
/installation_path/gws/elasticsearch
|
|
Routing templates
|
/installation_path/gws/routing-templates
|
|
Next Step