Ion reset function does not restart

I tried using the live reboot function with ionic serve and ionic emulate ios --livereload . The server starts well, the application is displayed on the simulator (or in the browser), and it runs smoothly.

When I change a file (js or html directory in www ) and save it, for example, write HTML changed: www/index.html console HTML changed: www/index.html , but the application does not restart itself, as it should.

I assumed that the websocket between the server and the application could be broken, but when I kill the server (Ctrl-C), the web inspector immediately launches the following error: [Error] WebSocket network error: The operation couldn't be completed. Connection refused (192.168.5.2, line 0, x4) [Error] WebSocket network error: The operation couldn't be completed. Connection refused (192.168.5.2, line 0, x4)

So, I assumed that there is no problem with websocket. Moreover, it is displayed without errors in the Network panel of the web inspector.

Is there something I missed to do the job with the liver?

My configuration:

  • Cordoba CLI: 5.0.0
  • Ionic version: 1.0.0
  • Ionic CLI Version: 1.4.5
  • Ionic App Lib Version: 0.0.22
  • ios-deploy version: 1.7.0
  • ios-sim version: 3.1.1
  • OS: Mac OS X Yosemite
  • Node Version: v0.10.30
  • Xcode Version: Xcode 6.3.2 Build version 6D2105

Feel free to ask me for clarification if something is unclear.

Edit

I also tested it without an internet connection to check if it was a firewall problem or something like that, but it doesn’t change anything.

+5
source share
1 answer

Try running ionic address and select the correct interface.

If this does not work, and it is iOS 9, this may be a problem with Apple ATS:

https://github.com/driftyco/ionic-cli/issues/605

It could also be a CORS problem. In this case, try installing the cordova-white-list plugin.

0
source

All Articles