You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PROJECT_NAME = 'code-push-server'
cd code-push-server
rm -rf temp
mkdir temp
cd ../../..
tar -zcv --exclude='.git' --exclude='.gitignore' -f test.tar.gz ./*
mv ./test.tar.gz ./code-push-server/docker/code-push-server/temp
cd code-push-server/docker/code-push-server
# ls
docker build -f ./Dockerfile -t code-push-server:1.0 ./
docker/code-push-server/ 目录下
修改Dockerfile
FROM node:8.11.4-alpine
COPY ./temp/test.tar.gz .
RUN tar xfz test.tar.gz; rm -rf test.tar.gz; cd code-push-server
ENTRYPOINT node ./code-push-server/bin/www
Activity
onionRunning commentedon Jan 16, 2020
重新打一个镜像 code-push-server:1.0
新建sh 脚本
docker/xx.sh
docker/code-push-server/ 目录下
修改Dockerfile
先上诉执行 生成 : code-push-server:1.0 这个镜像
然后更改 docker-compose.yml:
gao520sun commentedon Feb 4, 2020
@onionRunning


错误 unable to pin image code-push-server:1.0 to digest: manifest unknown: manifest unknown
whhx commentedon Mar 25, 2020
请问我现在用docker 19.03.8 版本部署后,server报log4j模块找不到,导致server模块启动不了。
ihwf commentedon Apr 21, 2020
一样, 你解决了吗?
yz1311 commentedon May 10, 2020
这边提供一个解决办法:
按照官方教程,将容器全部销毁,退出swam
https://github.com/lisong/code-push-server/blob/master/docker/README.md
进入
docker/docker-compose.yml,将镜像从改为
然后按照教程重新创建一遍就行了
验证是否支持最新版react-native-code-push的方式:
在cli中,随便找一个app,通过下面命令获取deploymentKey,并且找到有效的版本号
然后浏览器替换运行:
如果不是404,而是有具体信息,就是成功了
顺便说下,新的服务是支持老的接口的, 也就是你依旧可以使用react-native-code-push 5.6.0及之前的版本,老的接口验证方式:
gao520sun commentedon Jul 7, 2020
兄弟 解决了吗
jswangtao commentedon Jun 21, 2021
@yz1311 感谢感谢
jswangtao commentedon Oct 14, 2021
code-push-cli 2.1.9
react-native-code-push 7.0.1 安卓可以,但是iOS不得行,第一次请求是/v0.1/public/codepush/update_check?deployment_key=aUFMFJwBOawr2CBeDAmijkdMlvNZ4ksvOXqog&app_version=1.0.0&client_unique_id=305CC15E-91A6-47FC-8AE5-A64699590B8E
第二次请求就变成
/v0.1/public/codepush/update_check?deployment_key=aUFMFJwBOawr2CBeDAmijkdMlvNZ4ksvOXqog&app_version=1.0.0&package_hash=f8a14c55774982c0817d1e220b8a3d394792411280d339149316f52a92b73e3e&label=v29&client_unique_id=305CC15E-91A6-47FC-8AE5-A64699590B8E
感觉就像是已经把差异包下载下来了,但是iOS的界面没更新,安卓可以正常使用 @yz1311