-
Notifications
You must be signed in to change notification settings - Fork 139
ngrok should use the same address, when server is restarted #51
Comments
Hi, is this plugin ready for publishing application on the store? or it's currently only support for doing local development? From my understanding, now since ngrok link changes when cordova-hcp server restarted (we cann't promise cordova-hcp server runs all time without any problem), app needed to rebuild and all installed device need to reinstall the app. so it's not ready for publishing application on the store? Thanks |
You use ngrok only for development and nothing more. For production you need your own real server, on which you upload configs and web content. And then you set it's url in the |
I set url in the config.xml like this:
and chcp.json:
I use nginx webserver. But when I update http://duangwifi.cn/TestProject/www/index.html, my app didn''t update info. Am I missing something? |
Did you update your Please, check the docs. |
I've updated http://duangwifi.cn/TestProject/www/chcp.manifest as well, but app still not update. Need I run cordova-hcp server on my server too? (now is nginx) I find cordova-hcp server on local have "a user connected" etc logs. will nginx do the same?
|
First, I don't think you need
in your manifest file. Second: if you are trying to get immediate updates after changing file, as you get by using ngrok and local-dev plugin - it's not gonna work like this. How plugin works in development mode: How plugin works with production version: For production you have a real external server, on which you put 2 configuration files (as you did): When you launch the app - plugin loads If you want your production server to act as
|
If you don't get updates after re-launching the app - then there's might be some problem with configuration. You can try to launch the app from Xcode by opening |
I find when I run cordova-hcp build, chcp.json becomes like this:
and my app can't update when relunched. after I update chcp.json manually like this:
my app get updates. At last, thank you for your awesome work!! |
Good that you found the problem :) To make CLI client automatically set correct server address - use
First, you need to create
In that config you put all additional preferences, that should be placed in {
"content_url": "http://duangwifi.cn/TestProject/www",
"update": "now"
} After running
|
I got it, thanks! |
👋 Hi! Thank you for your interest in this repo. 😢 We are not using nordnet/cordova-hot-code-push-cli 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 #79 for more information. |
Originally asked in nordnet/cordova-hot-code-push#143.
Before it was working properly. When server starts - it creates
.chcpenv
config and stores server's url in there. On the next launch it uses it, so that the address would remain the same. But for some reason this stopped working.The text was updated successfully, but these errors were encountered: