shm-open / code-push-server

CodePush service is an app hot update service which is compatible with react-native-code-push and other CodePush clients
MIT License
191 stars 53 forks source link

How to change URL download on client side? #242

Open duduccosta opened 7 months ago

duduccosta commented 7 months ago

Hello,

We currently use AppCenter codepush. We want to change to have our own codepush server.

Even configuring this library, what is the correct process for changing server settings on the client side? I'm using React Native.

Thanks.

billxie1988 commented 6 months ago

Hello,

We currently use AppCenter codepush. We want to change to have our own codepush server.

Even configuring this library, what is the correct process for changing server settings on the client side? I'm using React Native.

Thanks.

Hi shm-open/code-push-server & shm-open/code-push-client can help you

billxie1988 commented 6 months ago
  1. INSTALL code-push-server suggest to use docker config the dockcompose
  2. INSTALL code-push-client on you macbook this will let you resgiter you RN Apps to your own server
  3. add RN package "react-native-code-push": "^8.2.1" ios set the infoplist
    <key>CodePushDeploymentKey</key>
    <string>xxxxxx</string>
    <key>CodePushServerURL</key>
    <string>http://x.x.x.x:xxxx/</string>

    android app/src/main/res/values/string.xml

    <resources>
    <string name="app_name">YOURAPPNAME</string>
    <string moduleConfig="true" name="CodePushDeploymentKey">xxxxxxxx</string>
    <string moduleConfig="true" name="CodePushServerUrl">your sever url</string>
    </resources>

    RN import codePush from "react-native-code-push"; export default codePush(App);

On your mac os client code-push login http://xx.xxx.xxx.xxx:0000/

duduccosta commented 3 months ago

Hello!

Thanks for reply! And how can I create a bundle js?

On appcenter environment, we have the appcenter cli. But without appcenter, how can I do it?

Thanks.

billxie1988 commented 3 days ago

Hello!

Thanks for reply! And how can I create a bundle js?

On appcenter environment, we have the appcenter cli. But without appcenter, how can I do it?

Thanks.

The code-push-client will atuomaticly upload the RN project’s bundle To your sever,and the sever will push the new bundle to the apps. you only need install the client in your termial.Follow my suggest step.The Step3 will integrat the codepush on RN apps.with some inital code,it will pull the update from the custom server.