Hi,
is possible to set host name and port number for $ ionic serve
command.
If not, I would be very useful feature.
Hi,
is possible to set host name and port number for $ ionic serve
command.
If not, I would be very useful feature.
Right now its not possible, but you can always add a feature request for this on the CLI’s github page
Not documented but it is in the code as of 2014-04-29
Usage: ionic serve [http-port] [livereload-port] [options]
$ ionic serve 9100 9101
Running serve task...
Running dev server at http://0.0.0.0:9100
Running live reload server at http://0.0.0.0:9101
https://github.com/driftyco/ionic-cli/blob/master/lib/ionic/serve.js#L28
This comes up as the first hit on Google, but it’s not true anymore. The right way to do it is by doing the following:
ionic serve -p 8101
ionic serve -a
makes it listen for 0.0.0.0
ionic run android -a 8100 not working