Ascend Deployment

You can use the Ascend Deployment function to synchronize specified files and folders to a specified directory on a remote device.

Configuring the Ascend Deployment Function

  1. Choose File > Settings… from the menu bar.

    In the navigation bar on the left, choose Tools > Ascend Deployment to enter the page shown in Figure 1.

    Figure 1 Ascend Deployment page
    Table 1 Parameters and icons

    Parameter/Icon

    Description

    Click this button to add a Deployment function.

    Click this button to delete a Deployment function.

    Click this button to specify the selected Deployment as the default Deployment. Click this button again to cancel the default setting.

  2. Configure the connection to the remote server.
    Click , enter a server name in the displayed window, and click OK. The Connection, Mappings, and Excluded Paths parameters to be configured are displayed.
    Figure 2 Connection
    Table 2 Parameters and icons

    Parameter/Icon

    Description

    Type

    File transfer protocol type. Currently, only SFTP is supported.

    SSH configuration

    SSH remote connection. Click or to select a configured SSH connection. If no SSH connection is available, click and to configure an SSH connection.

    Upload Current Project

    Synchronizes the current project to a remote server.

    After you select this button and click Apply, the current project is automatically synchronized to the remote server. In addition, Automatic Upload is enabled by default.

    Test Connection

    Checks whether the connection is successful.

  3. (Mandatory) Configure the mapping path.
    Figure 3 Mappings

    To configure more mappings, click Add New Mapping.

    Figure 4 Configuration of multiple mappings
    Table 3 Parameters and icons

    Parameter/Icon

    Description

    Adds a mapping path.

    Deletes a mapping path. Select the mapping path that you want to delete and click this button to delete it.

    Local Path

    Path of the local project folder. Click the corresponding text box. The path of an opened project folder is automatically identified. You can also manually enter the path in the text box or click the folder icon on the right of the text box to select one.

    Example values are as follows:

    • Windows: C:\Users\username\MindstudioProjects\MyApp
    • Linux: /home/username/MindstudioProjects/MyApp

    Deployment Path

    Path of the local project folder mapped to the remote server. You can manually enter the path in the text box or click the folder icon on the right of the text box to select one.

  4. (Optional) Configure excluded paths as required.
    Figure 5 Excluded Paths
    Table 4 Parameters and icons

    Parameter/Icon

    Description

    Adds an excluded path. Click this button to select Deployment Path or Local Path, which correspond to the and icons respectively.

    Deletes an excluded path. Select the excluded path to be deleted and click this button to delete it.

    Excludes a path on the remote server. You can manually enter a value in the text box or click the folder icon to configure the path. After the configuration takes effect, the upload and download operations cannot be performed on all subdirectories and files in the excluded path.

    Excludes a local path. You can manually enter a value in the text box or click the folder icon to configure the path. After the configuration takes effect, the upload and download operations cannot be performed on all subdirectories and files in the excluded path.

    Example values are as follows:

    • Windows: C:\Users\username\MindstudioProjects\MyApp
    • Linux: /home/username/MindstudioProjects/MyApp
  5. Click Apply for the Deployment configuration to take effect. Deployment synchronization will be triggered when you use the running and debugging functions.

Using the Ascend Deployment Function

To use the Ascend Deployment function, perform the following operations:
  • Automatic upload
    1. Choose File > Settings… from the menu bar.

      In the navigation bar on the left, choose Tools > Ascend Deployment to access the Ascend Deployment page. Then select the Deployment to be used from the Deployment list and click to set it as the default Deployment.

    2. Choose Tools > Ascend Deployment > Automatic Upload from the menu bar.
  • Manual synchronization
    • Select the file or directory to be synchronized from the project directory on the left, choose Tools > Ascend Deployment from the menu bar, and click Upload to... or Download from... to manually trigger the upload or download function of the Deployment.
    • Select the file or directory to be synchronized from the project directory on the left, right-click Ascend Deployment and click Upload to... or Download from... to manually trigger the upload or download function of the Deployment.
  • During the upload, the Deployment maps the Local Path in the mapping to the corresponding Deployment Path. If the Local Path contains the a, b, and c files and the remote Deployment Path contains the d file, after the upload process is complete, only the a, b, and c files exist in the remote directory, because the d file is deleted.
  • The complete mapping process is not used during the download process. For example, if the remote Deployment Path contains the a, b, and c files and the Local Path contains the d file, after the download process is complete, files a, b, c, and d exist in the Local Path.