React-Native hot update practice

The following is the practice of the hot update solution based on CodePush. If you need it, you can refer to it:

1. Configure appcenter

1.1 install appcenter

The command to install appcenter is as follows:

npm install -g appcenter-cli 
/** 安装完成后 */
appcenter help
/** 如果出现帮助指令说明安装成功 */

After the installation is successful, log in to appcenter, the commands involved are as follows:

appcenter login

insert image description here

After successful login, you will get a token, and fill the token into the console to complete the login.
insert image description here

After the login is successful, execute the following command to view the login information.

appcenter profile list

1.2 Creating Apps for Different Platforms

The format of the created command is as follows:

appcenter apps create -d <appDisplayName> -o <operatingSystem> -p <platform>

For example, the following only considers iOS and Android platforms.

appcenter apps create -d RNDe

Guess you like

Origin blog.csdn.net/xiangzhihong8/article/details/130263219