Skip to content

Commit 3cbc01e

Browse files
committed
fix docs
1 parent bd668c2 commit 3cbc01e

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

‎docs/react-native-code-push.md‎

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
- Q: “code-push使用复杂么?”
1515
A: “不复杂。很多网上的文章说复杂,是因为作者没有仔细理解官方文档,而且认为踩坑了。”
1616

17-
- Q: “为什么推荐code-push?”
17+
- Q: “为什么推荐code-push?”
1818
A: ”非常好。除了满足基本更新功能外,还有统计,hash计算容错和差异化更新功能。微软的项目,大公司技术有保障,而且开源。读大学的时候,个人非常讨厌微软,近几年微软在拥抱开源方面,让大家也是刮目相看。“
1919

2020
## 安装依赖包
@@ -43,14 +43,9 @@ $ react-native link react-native-code-push #连接到项目中,提示输入
4343
#### 4. [code-push-server](https://github.com/lisong/code-push-server) 微软云服务在中国太慢,可以用它搭建自己的服务端。具体配置参考该项目
4444

4545
```shell
46-
$ git clone https://github.com/lisong/code-push-server.git
47-
$ cd code-push-server
48-
$ mysql -uroot -e"create database codepush default charset utf8;"
49-
$ mysql -uroot codepush < ./sql/codepush.sql
50-
$ mysql -uroot codepush < ./sql/codepush-v0.1.1.sql
51-
$ mysql -uroot codepush < ./sql/codepush-v0.1.5.sql
52-
$ npm install
53-
$ PORT=3000 HOST=127.0.0.1 node ./bin/www
46+
$ npm install code-push-server -g
47+
$ code-push-server-db init --dbhost localhost --dbuser root --dbpassword #初始化数据库
48+
$ code-push-server #启动服务 浏览器中打开 http://127.0.0.1:3000
5449
```
5550

5651
## 创建服务端应用

0 commit comments

Comments
 (0)