Typical project case 4 - the problem of automatic upgrade caused by app packaging in the production environment

1: Background introduction

This blog is a summary and improvement of the problem that the app packaging in the production environment cannot be automatically upgraded .
The purpose is to transform the experience into your own. Share it with everyone through the blog, and we will make progress and improve together.

Problem background:

The user installed the 74 version of the app, which cannot be automatically upgraded. Using the uni upgrade center.

Two: ideas & solutions

The user reported this problem. Through investigation, it was found that the user could not upgrade because there was no associated cloud space when the version 74 package was packaged.

Example:
insert image description here

the impact

The app cannot be automatically upgraded, and the product cannot provide stable certainty, which will cause thousands of users to lose, and the company will eventually die.

Workaround:

1. Closed-loop inspection. Before a problem occurs, it is operated by one person. Two people can be used to review to further ensure that there are no problems in the steps and processes.
2. Test guarantee after going online
3. Use automated packaging scripts to avoid problems caused by human factors

Three: Correct packaging and configuration automatic upgrade process

The following is how to use uniCloud's App upgrade center to automatically upgrade the app
App upgrade center document

1. Register uniCloud cloud service space

uniCloud cloud space

2. Create an admin project

①Open Hbuilder, create a new project, and select uni-app

insert image description here
②After clicking Create, follow the prompts and bind the cloud space

insert image description here
insert image description here
③. Import the HBuilderX plug-in and select the newly created admin project
HBuilder upgrade center plug-in
insert image description here

insert image description here
insert image description here

3. Create a uniapp project

①Create an app project
insert image description here
②Associate service cloud space
insert image description here
insert image description here

③. Import the HBuilderX plug-in, select the project HBuilder upgrade center plug-in just created

insert image description here

4. App packaging

insert image description here
insert image description here
insert image description here

5. Publish to the upgrade center

First run the admin project to log in
insert image description here
insert image description here
insert image description here

Four: Summary

  1. Closed-loop thinking, after completing the corresponding tasks according to the process, check again, check yourself and others to ensure that there are no problems. In addition, testing work is also required, and closed-loop work is performed again.
  2. Avoid problems caused by task factors by using automated packaging scripts

Guess you like

Origin blog.csdn.net/wangwei021933/article/details/129467326
Recommended