Specifying the Web API URL in the client app

When it comes to hosting the app static files such as the client app, launcher, & runtime, you can choose to use the same Docker container, a different Docker container, or a separate website. Make sure to tell the client app where the Web APIs is hosted and run.

Step 1: Go to the client app folder (for example, "salesdemo_cloud"), open the apprun.json file in a text editor.

Step 2: Specify the URL of the docker container where the Web APIs is running, for example, https://172.16.100.20:5009. This indicates that the client app will call the Web APIs running on the docker container at https://172.16.100.20:5009.

{
    "deployment_urls": {
        "launcher": "CloudAppPublisher/CloudAppInstall 25.0",
        "runtime": "CloudAppPublisher/runtime/25.1.0.2670",
        "web_api": "https://172.16.100.20:5009"        
    }
}
  1. The host name (or IP address) of the docker container should be specified and it should be the same as that of the docker host/Docker Engine. The port number should be the same one specified when the docker container is run.

  2. If the host name and port number of the docker container are changed later, you only need to update the Web API URL here (it is not necessary to re-deploy Web APIs to Docker).

  3. It is highly recommended that you specify an HTTPS URL for the production environment.