6. Application template upgrade

Purpose

Learn how to upgrade the application template through the documentation, and apply the upgraded content to the applications that have been installed based on the application template.

significance

Application development is iterative, and each version change requires the application template to have corresponding version control capabilities.An application installed based on a lower version of the application template needs to have the function of upgrading based on the new version of the application template.

Preconditions

  • Complete to publish the app as app template and have app copied from app **installed based on the example app template.

  • The source application(the application used to publish the application template) has new changes. In this document, the service component Redisis added as an example.

6. Application template upgrade - 图1

Version control of application templates

Republish the source application, and fill in the version number larger than the original version, such as 1.1.Rainbond distinguishes old and new versions by comparing the version number numbers.

6. Application template upgrade - 图2

After clicking to publish , enter the application synchronization page, and you can find the newly added Redis component in the synchronization record.

6. Application template upgrade - 图3

In the release record list, the new version of the application template can be found.

6. Application template upgrade - 图4

Upgrading of existing applications

The existing application specifically refers to the application copied from the application **installed based on the sample application template of version 1.0.This application represents an existing running application installed based on the low-version application template. We need to apply the upgraded content in the new version 1.1 to the low-version application.

  • Click to upgradein the left column of the application topology map page of copy, enter upgrade management page, here you can specify current version,can be upgraded to version**.

6. Application template upgrade - 图5

  • Click to upgradeon the upgrade management page.Enter the upgrade details page, Rainbond will automatically compare the version differences and display them.

6. Application template upgrade - 图6

  • Continue to click to upgrade,to upgrade to completeto complete the entire upgrade process.

6. Application template upgrade - 图7

Next step

Starting with the next task, we’ll start exploring some advanced usage scenarios.