Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.

Disable ngrok? #8

Closed
elewin opened this issue May 13, 2016 · 2 comments
Closed

Disable ngrok? #8

elewin opened this issue May 13, 2016 · 2 comments

Comments

@elewin
Copy link

elewin commented May 13, 2016

Is it possible to disable the ngrok functionality and just have the live server push go through the local server only?

@nikDemyankov
Copy link
Member

Currently this add-on depends on plugin's CLI client. When you run cordova-hcp server - CLI client create's .chcpenv file with server preferences (actually, just it's url). When you run cordova prepare - add-on reads .chcpenv and set's <config-file url="" /> in platform specific config.xml. When application is launched - add-on connects with socket.io library to this server and listen for update events. When captured - it executes chcp.fetchUpdate() on JS side.

If you want to use your own server for development - you need two things:

  1. Your update server should support socket connections, and application should be able to connect to it with socket.io library.
  2. Create .chcpenv file and set in it correct server address. Or modify add-on hook to read preferences from other file.

@nordnet-deprecation-bot
Copy link
Contributor

👋 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.

@nordnet nordnet locked and limited conversation to collaborators Sep 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants