美文网首页
codepush的一般命令

codepush的一般命令

作者: 太平洋_cfd2 | 来源:发表于2024-10-17 15:41 被阅读0次
主要是在随便的一个目录下,登录,应该在项目目录;
问题是token过期了;
在项目目录下:
code-push login 127.0.0.1:3000
输入token
即可

创建jsBundle文件
react-native bundle --platform ios --entry-file index.js --bundle-output ../../codepush/bundles/main.jsbundle --assets-dest ../../codepush/bundles --dev false

发布
code-push release-react maxxhealth iOS -o ../../codepush/bundle --t 1.4.4 --d Staging

code-push release-react sunoAi iOS -o ./bundle --t 4.7.1 --d Staging

  1. 启动服务
    /Users/tuling/Desktop/push/code-push-server/bin/www

查看app list(已创建app目录)
Code-push app list

查看app的key
code-push deployment ls maxxhealth(appName包名) -k

// 更新历史
code-push deployment history maxxhealth Staging --format table(大概)
code-push deployment history maxxhealth Staging --format json(详细)

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

code-push release-react hotRefresh iOS -o ./bundle --t 1.0.0 --d Staging

// 创建部署环境
code-push deployment add hotRefresh Production_A

// 指定版本发布
// 指定版本推送
code-push release-react maxxhealth Staging --targetBinaryVersion “1.2.0”

code-push release-react maxxhealth Staging --targetBinaryVersion “>=1.2.0 <1.4.0”

code-push release-react maxxhealth Staging --targetBinaryVersion “1.0.*”

// 百分比推送
code-push release-react maxxhealth Staging --targetBinaryVersion “1.0.*”

// 回滚
code-push rollback maxxhealth Staging(仅回滚至上一个版本,不能指定版本)

相关文章

网友评论

      本文标题:codepush的一般命令

      本文链接:https://www.haomeiwen.com/subject/ukgfdjtx.html