实时重新加载不适用于Ionic服务命令 [英] Live reload is not working with Ionic serve command

查看:253
本文介绍了实时重新加载不适用于Ionic服务命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据离子指南第4章 http://ionicframework.com/docs/guide/testing .html ,离子服务器将启动一个实时重装服务器,它在我的情况下,但没有重新加载。

As per the Ionic Guide Chapter 4 http://ionicframework.com/docs/guide/testing.html, ionic serve will start a live reload server, which it does in my case, but reload is not happening.

是否有任何预先请求我们需要为这件事工作吗?比如说重新加载chrome扩展吗?

Is there any pre-req we need to have for this thing to work? Like say live reload chrome extension?

E:\Ionic\myapp>ionic serve
Running dev server: http://localhost:8100
Running live reload server: http://localhost:35729


推荐答案

这对我有用:


  • 如果你运行它就停止离子服务'q '命令

  • 从命令提示符运行:离子地址

  • stop ionic service if you running it 'q' command
  • run: ionic address from command prompt

运行此命令后,它将提示您选择要使用的地址,一个是localhost,第二个是您的机器IP地址。
尝试使用选择您的机器IP地址而不是localhost。

After running this command it will prompt you to select what address you would like to use one is localhost and the second one is your machine IP address. Try to use select your machine IP address instead of localhost.

这篇关于实时重新加载不适用于Ionic服务命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆