Skip to content

Commit 3452d9b

Browse files
committed
fix readme
1 parent 64135ad commit 3452d9b

8 files changed

+39
-12
lines changed

CHANGELOG.md

+23-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,33 @@
11
# Changelog for code-push-server
2-
## 0.4.0
3-
- targetBinaryVersion 支持正则匹配
2+
## 0.4.7
3+
4+
### 新特性
5+
6+
- targetBinaryVersion 支持正则匹配, `deployments_versions`新增字段`min_version`,`max_version`
47
- `*` 匹配所有版本
58
- `1.2.3` 匹配特定版本`1.2.3`
69
- `1.2`/`1.2.*` 匹配所有1.2补丁版本
710
- `>=1.2.3<1.3.7`
811
- `~1.2.3` 匹配`>=1.2.3<1.3.0`
912
- `^1.2.3` 匹配`>=1.2.3<2.0.0`
13+
- 添加docker编排服务部署,更新文档
14+
- Support Tencent cloud cos storageType
15+
16+
## 如何升级到该版本
17+
18+
- 升级数据库
19+
`$ ./bin/db upgrade`
20+
or
21+
`$ mysql codepush < ./sql/codepush-v0.4.0-patch.sql`
22+
23+
- 处理存量数据
24+
``` shell
25+
$ git clone https://github.com/lisong/tools
26+
$ cd tools
27+
$ npm i
28+
$ vim ./bin/fixMinMaxVersion //修改数据配置
29+
$ node ./bin/fixMinMaxVersion //出现提示 success
30+
```
1031

1132
## 0.3.0
1233

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ $ code-push login http://api.code-push.com #登录
5353

5454
## HOW TO INSTALL code-push-server
5555

56-
- [docker](./docker/README.md) (recommend)
57-
- [manual operation](./docs/README.md)
56+
- [docker](https://github.com/lisong/code-push-server/blob/master/docker/README.md) (recommend)
57+
- [manual operation](https://github.com/lisong/code-push-server/blob/master/docs/README.md)
5858

5959
## HOW TO USE
6060

61-
- [normal](./docs/react-native-code-push.md)
61+
- [normal](https://github.com/lisong/code-push-server/blob/master/docs/react-native-code-push.md)
6262
- [react-native-code-push](https://github.com/Microsoft/react-native-code-push)
6363
- [code-push](https://github.com/Microsoft/code-push)
6464

core/const.js

+1
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,6 @@ define("RELEAS_EMETHOD_UPLOAD", 'Upload');
3737
define("DEPLOYMENT_SUCCEEDED", 1);
3838
define("DEPLOYMENT_FAILED", 2);
3939

40+
define("DIFF_MANIFEST_FILE_NAME", 'hotcodepush.json');
4041

4142

core/services/package-manager.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ proto.zipDiffPackage = function (fileName, files, baseDirectoryPath, hotCodePush
195195
var file = files[i];
196196
zipFile.addFile(`${baseDirectoryPath}/${file}`, slash(file));
197197
}
198-
zipFile.addFile(hotCodePushFile, 'hotcodepush.json');
198+
zipFile.addFile(hotCodePushFile, constConfig.DIFF_MANIFEST_FILE_NAME);
199199
zipFile.end();
200200
});
201201
}

docker/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ $ sudo docker service ps code-push-server_server
8181
8282
## 访问接口简单验证
8383

84-
`$ curl -I http://127.0.0.1:3000/`
84+
`$ curl -I http://YOUR_CODE_PUSH_SERVER_IP:3000/`
8585

8686
返回`200 OK`
8787

docs/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ $ ./bin/db init --dbhost "your mysql host" --dbport "your mysql port" --dbuser
5050
5151
## CONFIGURE for code-push-server
5252

53-
save the file [config.js](../config/config.js)
53+
save the file [config.js](https://github.com/lisong/code-push-server/blob/master/config/config.js)
5454

5555
some config have to change:
5656

@@ -62,7 +62,7 @@ some config have to change:
6262

6363
## CONFIGURE for pm2
6464

65-
save the file [process.json](./process.json)
65+
save the file [process.json](https://github.com/lisong/code-push-server/blob/master/docs/process.json)
6666

6767
some config have to change:
6868

@@ -90,7 +90,7 @@ $ pm2 stop process.json
9090
## CHECK SERVICE IS OK
9191

9292
```shell
93-
$ curl -I http://127.0.0.1:3000/
93+
$ curl -I http://YOUR_CODE_PUSH_SERVER_IP:3000/
9494
```
9595

9696
> return httpCode `200 OK`

docs/react-native-code-push.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ $ react-native link react-native-code-push #连接到项目中,提示输入
4242

4343
#### 4. [code-push-server](https://github.com/lisong/code-push-server) 微软云服务在中国太慢,可以用它搭建自己的服务端。
4444

45-
- [docker](../docker/README.md) (recommend)
46-
- [manual operation](./README.md)
45+
- [docker](https://github.com/lisong/code-push-server/blob/master/docker/README.md) (recommend)
46+
- [manual operation](https://github.com/lisong/code-push-server/blob/master/docs/README.md)
4747

4848
## 创建服务端应用
4949

package-lock.json

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)