Revision as of 14:33, March 17, 2016 by Jumunn (talk | contribs) (Deploying the web application)
Jump to: navigation, search

Deploying the web application

Important
If you're deploying Web Services and Applications version 8.5.201.09 or earlier, complete the steps on Deploying the web application for 8.5.201.09 or earlier instead.

As of version 8.5.201.18, you can install Web Services as a service. Complete the following steps for each Web Services node.

Start

  1. Create a new folder on your Web Services node. For example, web-services. This is the working folder for the web application.
  2. Copy the gws.jar file from the installation CD to your new web-services working folder.
  3. Copy the installation_CD/etc/defaults/gws file to the /etc/defaults folder on your Web Services host.
  4. Copy the installation_CD/etc/init.d/gws file to the /etc/init.d folder on your host.
  5. Open /etc/defaults/gws on your host and update GWS_HOST and GWS_PORT for your Web Services node. Note: These values should match the host and port you'll define later in the jetty section of the application.yaml configuration file.
  6. Set the GWS_HOME, GWS_LOGS, and GWS_TEMP environment variables to values appropriate for your solution. Note: GWS_HOME should point to the working folder you created in Step 1.
  7. Optionally, you can create folders for log and temporary files. If you don't create them, Web Services creates them during application startup, in the location you defined for the GWS_LOGS variable.
  8. Optionally, you can set the GWS_CONF variable to point to a folder where Web Services can create its configuration files. If you don't define this variable, you'll need to copy the files manually (see the next step).
  9. If you didn't define the GWS_CONF variable in the previous step, create the following configuration files in the root of your working folder. You can simply copy the files from installation_CD/config-templates and remove the .sample extension. You'll learn more about the settings in these files as you go through the configuration steps for Web Services and its features later in this guide.
    • application.yaml
    • elasticsearch.yml
    • hystrix.properties
    • logback.xml
    • statistics.yaml
  10. Copy the routing-templates folder from installation_CD/routing-templates to your working folder.
  11. Create the user group gws.
  12. Create the gws user in the gws user group.
  13. The user shell has read and write permissions for the folders defined in the GWS_HOME, GWS_LOGS, GWS_TEMP, and GWS_CONF environnment variables.
  14. Use the following command to register the new service on your host: chkconfig gws on

End

Next Step

Comments or questions about this documentation? Contact us for support!