Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Stop the service-manager service.

  2. In the <service-manager>\config\ folder, create a new file client-enaio.yml with the following content:

    Code Block
    languageyml
    titleclient-enaio.yml
    spring:
      application:
        name: clientenaio
    resourcesDirectoryPath: '${enaio.data.path}/webresource/resources-enaio/'


  3. In the <service-manager>\config\ folder, edit the servicewatcher-sw.yml file and copy the "clientservice" section. Then change the "name" parameter to "clientservice-enaio" and add "enaio" to the right end of the profiles parameter. It should look like this now:

    Code Block
    languageyml
    titleservicewatcher-sw.yml snippet
    - name: clientservice
      type: microservice
      profiles: prod,cloud
      instances: 1
      memory: 64M
      port: 7391-7395
      path: ${appBase}/clientservice/clientservice-app.jar
    
    - name: clientservice-enaio
      type: microservice
      profiles: prod,cloud,enaio
      instances: 1
      memory: 64M
      port: 7391-7395
      path: ${appBase}/clientservice/clientservice-app.jar


  4. In the <service-manager>\config\ folder, edit the gateway-prod.yml file and add a new endpoint:

    Code Block
    languageyml
    titlegateway-prod.yml endpoint
      - name: 'enaio'
        url: 'http://clientenaio'


  5. In the <service-manager>\data\webresource folder (replace <service-manager>\data with the data folder of the service-manager if you chose a different location for it), copy the "resources" folder and call it "resources-enaio".

  6. Copy the <service-manager>\data\public\client\index.html file to <service-manager>\data\webresrouce\resources-enaio\client\.

  7. Edit the copied index.html and change the line "<base href="/app/client/">" to "<base href="/enaio/client/">.

  8. Start the service-manager. You can now use /enaio/client the same way as /app/client.

...