Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.5.4的镜像是不是没发布? #257

Open
YDJSZY opened this issue Dec 13, 2019 · 8 comments
Open

0.5.4的镜像是不是没发布? #257

YDJSZY opened this issue Dec 13, 2019 · 8 comments

Comments

@YDJSZY
Copy link

YDJSZY commented Dec 13, 2019

我本地跑是ok的,但用docker跑就请求不到版本更新的接口,一直是404.

@onionRunning
Copy link

重新打一个镜像 code-push-server:1.0
新建sh 脚本
docker/xx.sh

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

先上诉执行 生成 : code-push-server:1.0 这个镜像
然后更改 docker-compose.yml:

version: "3.7"
services:
  server:
    image: code-push-server:1.0 // 修改部分
...

@gao520sun
Copy link

gao520sun commented Feb 4, 2020

@onionRunning
错误 unable to pin image code-push-server:1.0 to digest: manifest unknown: manifest unknown
image
image

@whhx
Copy link

whhx commented Mar 25, 2020

请问我现在用docker 19.03.8 版本部署后,server报log4j模块找不到,导致server模块启动不了。

@ihwf
Copy link

ihwf commented Apr 21, 2020

请问我现在用docker 19.03.8 版本部署后,server报log4j模块找不到,导致server模块启动不了。

一样, 你解决了吗?

@yz1311
Copy link

yz1311 commented May 10, 2020

这边提供一个解决办法:

按照官方教程,将容器全部销毁,退出swam
https://github.com/lisong/code-push-server/blob/master/docker/README.md

进入docker/docker-compose.yml,将镜像从

tablee/code-push-server:v0.5.2

改为

panshx/code-push-server:latest

然后按照教程重新创建一遍就行了


验证是否支持最新版react-native-code-push的方式:

在cli中,随便找一个app,通过下面命令获取deploymentKey,并且找到有效的版本号

code-push deployment list appName -k

然后浏览器替换运行:

https://[你的域名]/v0.1/public/codepush/update_check?app_version=[版本号]&deployment_key=[app的key]

如果不是404,而是有具体信息,就是成功了


顺便说下,新的服务是支持老的接口的, 也就是你依旧可以使用react-native-code-push 5.6.0及之前的版本,老的接口验证方式:

https://[你的域名]/updateCheck?appVersion=[版本号]&deploymentKey=[app的key]

@gao520sun
Copy link

请问我现在用docker 19.03.8 版本部署后,server报log4j模块找不到,导致server模块启动不了。

一样, 你解决了吗?

兄弟 解决了吗

@jswangtao
Copy link

@yz1311 感谢感谢

@jswangtao
Copy link

jswangtao commented 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants