ReactNative----CodePush学习笔记

 

命令:
  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

查看部署的历史版本信息: code-push deployment history <appName> <deploymentNmae>

 

 

命令:
  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 app add <app名称>   <平台> <react-native 固定字段>在服务器创建一个新的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根目录执行

code-push promote <appName> Staging Production

将测试环境推送到正式环境

code-push rollback <app名称> <发布状态 Staging 或Production> --targetRelease<要回退的版本号  例如:v3>

 

对已发布的版本回滚

 

  
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

仲少

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值