Debo
Debo

Reputation: 545

usage of --livereload command in Ionic2/ Ionic3

Ionic CLI 3.8 has come up with a --livereload option to live reload the changes from your app. Can someone tell the proper command for using it?

enter image description here

I tried with only --livereload and also ionic cordova --livreload but neither seems to work!

Upvotes: 4

Views: 2712

Answers (1)

sebaferreras
sebaferreras

Reputation: 44659

Just like @Duannx mentioned in the comments, the proper CLI command is

ionic cordova run android --livereload / ionic cordova run ios --livereload

or

ionic cordova run android --l / ionic cordova run ios --l

(Or just ionic run android/ios --l if you're using an older version of the CLI).

Please notice that in order to make the livereload feature to work, both the device and the computer running the command must be in the same WIFI network.

Otherwise you'll see errors like:

The connection to the server was unsuccessful (http://XX.XX.XX.XX:XXXX)

Upvotes: 4

Related Questions