Skip to content

Latest commit

 

History

History
65 lines (41 loc) · 1.34 KB

File metadata and controls

65 lines (41 loc) · 1.34 KB

CodePush

CodePush made by Microsoft that enables React Native developers to deploy mobile app updates directly to their users’ devices. It use AppCenter to manage.

How to use

  1. Install code-push CLI

    npm install -g code-push-cli
  2. Login with code-push

    code-push login
  3. Check project depolyment key (This step should be already configured)

    code-push deployment ls <project_name> -k

    If the project don't have deloyment key, it can bee added by following command

     code-push deployment add <project_name> -d
  4. Bundle local js and upload to AppCenter

    To Staging env

    code-push release-react <project_name> [ios|android] -m 

    Or you can use this shorter command

    yarn codepush:[ios|android]:release

    To Production env

    code-push release-react <project_name> [ios|android] -m -d Production

    Or you can use this shorter command

    yarn codepush:[ios|android]:release:production
  5. Find the release package in AppCenter

    The default behaviour will upload it in Staging env

    code

  6. Move staging to production

    code2