CodePushServer is a CodePush progam server! microsoft CodePush cloud is slow in China, we can use this to build our's cloud server. I use qiniu to store the files, because of it simple and quick! Or you can use local storage, just modify config.json file, it's simple configure.
$ cd /path/to/code-push-server
$ mysql -uroot -e"create database codepush default charset utf8;"
$ mysql -uroot codepush < ./sql/codepush.sql
$ mysql -uroot codepush < ./sql/codepush-v0.1.1.sql
$ npm install$ vim config/config.json$ node ./bin/wwwor point config file and ENV
$ CONFIG_FILE=/path/to/config.json NODE_ENV=production node ./bin/wwwyou can change like this.
$ PORT=3000 HOST=127.0.0.1 NODE_ENV=production node ./bin/wwwUse code-push-cli manager CodePushServer
$ npm i code-push-cli@lastest -g
$ code-push login http://127.0.0.1:3000 #login in browser account:admin password:123456npm i react-native-code-push@lastest -gFollow the react-native-code-push docs, addition iOS add a new entry named CodePushServerURL, whose value is the key of ourself CodePushServer URL. Andriod change com.microsoft.codepush.react.CodePush serverUrl to ourself.