electrode-io / electrode-ota-server

Electrode Over The Air Server for hot deployment of React Native and Cordova mobile apps
Other
204 stars 40 forks source link

What is the exact link on which the bundle is server from? #79

Closed kaushikwavhal closed 6 years ago

kaushikwavhal commented 6 years ago

i've followed this document and installed electrode-server https://github.com/electrode-io/electrode/blob/master/docs/chapter1/over-the-air/react-native-and-over-the-air.md.

Also my config json file has downloadUrl set to "http://localhost:8081/storagev2/" in the electrode-ota-server-fileservice-upload block.

But when the server starts, i get a 404 at http://10.14.21.123:9001/storagev2/

even though I am able to do the auth and get the key at the same place http://10.14.21.123:9001

datvong-wm commented 6 years ago

downloadUrl should be set to "http://10.14.21.123:9001/storagev2/". This is where you are running your server and where the mobile app will hit to check for new updates and download packages.

kaushikwavhal commented 6 years ago

I've changed the downloadUrl parameter and now it is set to http://10.14.21.123:9001/storagev2/ but i still get a 404.

datvong-wm commented 6 years ago

The path is defined here https://github.com/electrode-io/electrode-ota-server/blob/d24957dbda7bd260a58283bfc7592b9a1ac42605/electrode-ota-server-routes-acquisition/src/index.js#L45

Note you need the hash to return something meaningful.

kaushikwavhal commented 6 years ago

Okay yes. I can download the binary when i append the hash to the url. Thanks.