Specifying the Web API URL
For the installable cloud application to run successfully, you
need 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.
1 2 3 4 5 6 7 |
{ "deployment_urls": { "launcher": "CloudAppPublisher/CloudAppInstall 22.0", "runtime": "CloudAppPublisher/runtime/22.1.0.2670", <span><strong>"web_api": "https://172.16.100.20:5009"</strong></span> } } |
-
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. -
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 update or re-deploy Web APIs to Docker). -
It is highly recommended that you specify an HTTPS URL for the
production environment.