Build and deploy the PowerServer project

To build and deploy a PowerServer project:

  1. Before building and deploying the application, make sure to close any antivirus tool on the development machine.

  2. Click the Build & Deploy PowerServer Project button () in the toolbar, or right-click the PowerServer project in the System Tree and then select Build & Deploy PowerServer Project to build and deploy the application to the server. Or select Deploy PowerServer Project if you have already built the application before.

    The application executable file (as well as the PBD files) is generated under %TEMP%\pbappscache\temp\[appname] (for example, C:\Users\appeon\AppData\Local\Temp\pbappscache\temp\pssales) on the development machine, then digitally signed, and deployed to the server.

    The PowerServer C# solution is generated under the specified location (by default C:\Users\[username]\source\repos).

    Note

    After the application is deployed to the server, do not manually change the application folder name on the server, otherwise the application uninstall program will fail to run.

The build & deploy process is composed of the following tasks:

Process

What does the process do?

Build

1) Generates or updates the PowerServer C# solution (using the specified Namespace and Auth Template).

2) Converts PowerBuilder DataWindow objects to .NET DataStore models and parses the embedded SQL statements and adds them to the AppModels project.

3) Configures or updates the PowerServer Web API compilation environment.

4) Compiles the scripts and analyzes unsupported features.

5) Generates the PBD files, app executable file, and other application files.

Deploy

Adds the server settings (app name, Web API port, PowerServer license, and database configurations) to the ServerAPIs project of the PowerServer C# solution.

Deploy or Package

Uploads the app files (PBD files, app executable file, external files etc.) and settings (runtime file list, Web API URL, and other project settings) to the Web server, or creates an application package that includes these files and settings.


You can also build and deploy the project using commands (see Build the PowerServer project with commands for details).