You can package the client app (including the cloud app launcher, PowerBuilder runtime files, and the application files) into a zipped file and then copy and extract the zipped file to the physical path of the IIS web site.
Step 1: Double click the salesdemo_cloud project file in salesdemo.pbl. The PowerServer project painter displays.
Step 2: On the .NET Server page, specify the Web API URL, for example, http://172.16.100.35:82.
The client app will access this URL when it needs to call the Web APIs at runtime. This URL is stored with the client app, and you can modify it using the command-line tool (CustomizeDeploy.dll), without needing to modify and package the client app again. See this section for more details.
Step 3: On the Web Server page > Advanced tab, select Create a package, and then select Zipped file, Package Cloud App Launcher, and Package all runtime files (32-bit and 64-bit).
Step 4: Save the project settings and then click the Build & Deploy PowerServer Project button in the toolbar to generate the package.
When the packaging process is completed, the folder that contains the generated package will be displayed.
Step 5: Copy and extract the zip file to the physical path of the IIS web site.
To extract the zip file, right click the .zip file and select Extract. You should get two extracted folders ("CloudAppPublisher" and the application folder). Copy these two folders to the physical path of the IIS web site, as shown in the figure below.
After copying the client app to the IIS web site, you can verify that the client app is pointing to the appropriate Web APIs and the cloud app launcher can be successfully installed.
Verify that the client app is pointing to the appropriate Web APIs.
-
On the IIS server machine, navigate to the following sub-folder of the client app: C:\inetpub\wwwroot\clientapp\salesdemo_cloud\1.01.
If you have created multiple deployment versions for the application, you will have multiple sub-folders, such as 1.01, 1.02, etc., make sure you navigate to the folder of the current deployment version.
-
Execute this command in the command prompt:
dotnet CustomizeDeploy.dll -url
Note
You'd better run the command prompt using an administrator by right-clicking it and then selecting "Run as administrator".
Note
The CustomizeDeploy.dll tool requires the ASP.NET Core Runtime 3.1 or later to run, therefore, you may be prompted to install ASP.NET Core Runtime if it is not installed.
-
Make sure the returned URL is where you will publish the Web APIs later.
If the URL is not what you want, reset it using the command. For example, set the URL to https://172.100.100.100:8888 using the following command:
dotnet CustomizeDeploy.dll -url=https://172.100.100.100:8888
Verify that the cloud app launcher can be successfully installed.
-
On the client machine, access the application URL in the Web browser: http://172.16.100.35:81/salesdemo_cloud/.
-
Follow the prompt message to open Cloud Launcher or download/install the cloud app launcher.
After the cloud app launcher is installed, the application will run and you will see the "Session creation failed" error. This is normal behavior because the Web APIs has not been published to the IIS web site yet.