ReactNative----CodePush学习笔记

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/jing85432373/article/details/53196564

命令:
  add      Add a new deployment to an app
  clear    Clear the release history associated with a deployment
  remove   Remove a deployment from an app
  rm       Remove a deployment from an app
  rename   Rename an existing deployment
  list     List the deployments associated with an app
  ls       List the deployments associated with an app
  history  Display the release history for a deployment
  h        Display the release history for a deployment



命令:
  access-key       View and manage the access keys associated with your account
  app              View and manage your CodePush apps
  collaborator     View and manage app collaborators
  debug            View the CodePush debug logs for a running app
  deployment       View and manage your app deployments
  link             Link an additional authentication provider (e.g. GitHub) to an existing CodePush account
  login            Authenticate with the CodePush server in order to begin managing your apps
  logout           Log out of the current session
  patch            Update the metadata for an existing release
  promote          Promote the latest release from one app deployment to another
  register         Register a new CodePush account
  release          Release an update to an app deployment
  release-cordova  Release a Cordova update to an app deployment
  release-react    Release a React Native update to an app deployment
  rollback         Rollback the latest release for an app deployment
  session          View and manage the current login sessions associated with your account
  whoami           Display the account info for the current login session



错误:The uploaded package was not released because it is identical to the contents of the specified deployment's current release.
上载的包没有被释放,因为它与指定部署的当前版本的内容相同。
原因:当前项目没有改变 或者修改后没有保存  导致md5相同  

命令
解释
code-push add <app名称>   在服务器创建一个新的app
code-push ls   展示服务器上所有app
code-push deployment ls<app名称> 展示 app的状态
code-push deployment ls<app名称> -k 展示app状态 +Deployment key
code-push release-react <app名称> <平台名称(Android,ios,Windows)> 向服务器推送最新代码,需要在RN根目录执行
   
   

猜你喜欢

转载自blog.csdn.net/jing85432373/article/details/53196564