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
- 每次向 App Store 提交新的版本时,也应该基于该提交版本同时向 code-push-server 发布一个初始版本。(因为后面每次向 code-push-server 发布版本时,code-puse-server 都会和初始版本比较,生成补丁版本)
26
+
-Apple App allows the use of hot updates [Apple's developer agreement](https://developer.apple.com/programs/ios/information/iOS_Program_Information_4_3_15.pdf), in order not to affect the user experience, it is stipulated that silent updates must be used. Google Play cannot use silent updates, and a pop-up box must inform users that there is an update to the app. China's android market must use silent updates (if the pop-up box prompts, the app will be rejected by the reason of "please upload the latest version of the binary application package").
27
+
-The bundles of react-native are different for different platforms. When using code-push-server, you must create different applications to distinguish them (eg. CodePushDemo-ios and CodePushDemo-android)
28
+
- react-native-code-push only updates resource files, not java and Objective C, so when npm upgrades the version of the dependent package, if the localized implementation used by the dependent package, the application version number must be changed at this time (ios modify InfoCFBundleShortVersionString in .plist, android modify versionName in build.gradle), then recompile the app and publish it to the app store.
29
+
-It is recommended to use the code-push release-react command to release the application, which combines the packaging and release commands (eg. code-push release-react CodePushDemo-ios ios -d Production)
30
+
-Every time a new version is submitted to the App Store, an initial version should also be released to code-push-server based on the submitted version. (Because every time a version is released to code-push-server, code-puse-server will compare it with the initial version to generate a patch version)
> This document is used to describe docker deployment code-push-server, the example consists of three parts
16
6
17
-
## 安装 Docker
7
+
- code-push-server section
8
+
- Update packages are stored in `local` by default (i.e. stored on the local machine). Using the docker volume storage method, container destruction will not cause data loss unless the volume is manually deleted.
9
+
- The pm2 cluster mode is used to manage processes internally. The default number of open processes is the number of cpus. You can set the deploy parameter in the docker-compose.yml file according to your own machine configuration.
10
+
- docker-compose.yml only provides some parameter settings of the application. If you need to set other configurations, you can modify the file config.js.
11
+
- mysql section
12
+
- Data is stored using docker volume, and container destruction will not cause data loss unless the volume is manually deleted.
13
+
- Do not use the root user for the application. For security, you can create permissions with relatively small permissions for use by code-push-server. You only need to give `select, update, insert` permissions. To initialize the database, you need to use root or a user with table building privileges
> code-push-server verifies the json web token encryption method used by the login authentication method. The symmetric encryption algorithm is public, so it is very important to modify the tokenSecret value in config.js.
45
47
46
-
_非常重要!非常重要! 非常重要!_
48
+
_Very important! Very important! Very important!_
47
49
48
-
> 可以打开连接`https://www.grc.com/passwords.htm`获取 `63 random alpha-numeric characters`类型的随机生成数作为密钥
50
+
>You can open the connection `https://www.grc.com/passwords.htm` to obtain a randomly generated number of type`63 random alpha-numeric characters` as the key
49
51
50
-
_将`TOKEN_SECRET`中`YOUR_JWT_TOKEN_SECRET`替换成密钥_
52
+
_Replace `YOUR_JWT_TOKEN_SECRET`in`TOKEN_SECRET` with the key_
51
53
52
-
## 部署
54
+
## deploy
53
55
54
56
```shell
55
57
$ docker-compose up -d
56
-
```
58
+
````
57
59
58
-
> 如果网速不佳,需要漫长而耐心的等待。。。去和妹子聊会天吧^\_^
60
+
>If the internet speed is not good, a long and patient wait is required. .. Let's chat with the girl for a while ^\_^
59
61
60
-
## 查看进展
62
+
## View progress
61
63
62
64
```shell
63
65
$ docker-compose ps
64
-
```
66
+
````
65
67
66
-
## 访问接口简单验证
68
+
## Access interface simple verification
67
69
68
70
`$ curl -I http://YOUR_CODE_PUSH_SERVER_IP:3000/`
69
71
70
-
返回`200 OK`
72
+
returns `200 OK`
71
73
72
-
```http
74
+
````http
73
75
HTTP/1.1 200 OK
74
76
X-DNS-Prefetch-Control: off
75
77
X-Frame-Options: SAMEORIGIN
@@ -82,35 +84,35 @@ Content-Length: 592
82
84
ETag: W/"250-IiCMcM1ZUFSswSYCU0KeFYFEMO8"
83
85
Date: Sat, 25 Aug 2018 15:45:46 GMT
84
86
Connection: keep-alive
85
-
```
87
+
````
86
88
87
-
## 浏览器登录
89
+
## Browser login
88
90
89
-
> 默认用户名:admin密码:123456 记得要修改默认密码哦
90
-
> 如果登录连续输错密码超过一定次数,会限定无法再登录. 需要清空 redis 缓存
91
+
> Default username: admin Password: 123456 Remember to change the default password
92
+
> If you log in and enter the wrong password for more than a certain number of times, you will no longer be able to log in. You need to clear the redis cache
0 commit comments