CodePush

2016-10-18  本文已影响131人  B1ngx

热更新 codepush

步骤

  1. npm install -g code-push-cli
    安装 cli.
    code-push -v 查看版本信息:1.12.6-beta

Successfully logged-in. Your session file was written to C:\Users\BinG\AppData\Local.code-push.config. You can run the code-push logout command at any time to delete this file and terminate your session.

Successfully added the "zyxldsapp" app, along with the following default deployments:
┌────────────┬───────────────────────────────────────┐
│ Name │ Deployment Key │
├────────────┼───────────────────────────────────────┤
│ Production ││
├────────────┼───────────────────────────────────────┤
│ Staging │ │
└────────────┴───────────────────────────────────────┘

new CodePush("deployment-key-here" , this , BuildCofig.DEBUG)

deployment-key-here 可以通过 code-push deployment ls zyxldsapp -k 命令查看
Staging 为测试阶段,Production 为生产环境
当应用开发完成,可使用 code-push promote 命令从 Staging 迁移到 Production.

图一 图二
上一篇 下一篇

猜你喜欢

热点阅读