code push push step

1. Package and push the version of Staging

code-push release-react ZSKQ ios -m

 

2. Test packaging

react-native bundle --entry-file index.ios.js --bundle-output ~/Desktop/main.jsbundle --platform ios --assets-dest ~/Desktop/ --dev false

 

react-native bundle --entry-file index.ios.js --bundle-output ~/Desktop/main.jsbundle --platform ios --dev false

 

3. Push the version of Staging to Production to formal users

code-push promote ZSKQ Staging Production

 

4. The key used in the latest project

Staging:uPTrHBIPBU3qY_qc4DkmU_xn53LX4JzaZfEDl

The latest pushed version: v3

 

Production:TOvNofVuohRPbydF9Q7MJtITKxcP4JzaZfEDl

The latest pushed version: v3

 

5. Clear the push version

code-push deployment clear ZSKQ Production

 

6. Roll back to a specific version

code-push rollback ZSKQ Production --targetRelease v3

 

git operations

 

1. Delete the local branch

git branch -d v3.0.1

 

2. Delete the remote branch

git branch -d -r origin/v3.0.1

git push origin :v3.0.1

 

3. Create a branch

git checkout -b v3.0.2

git push origin v3.0.2

 

4. Add tags

git tag -a v3.0.1 -m 'v3.0.1'

git push origin v3.0.1

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326404133&siteId=291194637