nordnet / cordova-hot-code-push-local-dev-addon

[DEPRECATED] - Cordova plugin that adds local development feature to the Hot Code Push plugin.
https://github.com/nordnet/cordova-hot-code-push-local-dev-addon/issues/29
MIT License
24 stars 30 forks source link

Use local server instead of public server #16

Closed rollsroyc3 closed 5 years ago

rollsroyc3 commented 7 years ago

When compiling with local development enabled it seems to automatically inject the public url.

CHCP Local Development Add-on: Setting config-file to local server: https://20a51a38.ngrok.com/chcp.json Android version code is set to 5 iOS bundle version set to 4

Is it possible to have the config-file set to the local server instead?

nikDemyankov commented 7 years ago

You can check after_prepare_hook. By default when you build your project - it takes server's url from .chcpenv file, that can be found in your project's folder.

You can probably change the url in that file. If you'll change the config and then run cordova-hcp server - CLI client will override it. So be careful with that.

Another thing you can try out is to use build config of the main plugin.

Or just modify after_prepare_hook and point it to your server. In that case you can just change line 14 to your version of the config.

rollsroyc3 commented 7 years ago

Thanks, I will look into this!

nordnet-deprecation-bot commented 5 years ago

👋 Hi! Thank you for your interest in this repo.

đŸ˜ĸ We are not using nordnet/cordova-hot-code-push-local-dev-addon anymore, and we lack the manpower and the experience needed to maintain it. We are aware of the inconveniece that this may cause you. Feel free to use it as is, or create your own fork.

🔒 This will now be closed & locked.

ℹī¸ Please see #29 for more information.