ember cli和livereload:如何让它上班? [英] ember cli and livereload: how to get it to work?
问题描述
这是我已经安装了
$ ember --version:
版本:0.0.46
节点:0.10.32
npm:1.4.27
这是我如何运行:
$ ember new foo-bar
$ cd foo-bar
$ ember server
版本:0.0.46
端口35729上的Livereload服务器
服务于http://0.0.0.0:4200
浏览到$ code> http:// localhost:4200 在Chrome中显示我的ember应用程序。
现在,如果对'application.hbs'进行更改,然后保存,浏览器不会更新。有没有什么特别的事情要启用livereload?
我意识到这个问题类似于实时重新加载不能使用ember-cli ,但是该问题的答案并不能解决我的问题。
这是一个已知问题< a>目前为0.0.46。您可以手动将此脚本标签添加到 app / index.html
以解决此问题。
code>< script src =http:// localhost:35729 / livereload.js?snipver = 1type =text / javascript>< / script>
I can't for the life of me get livereload to work with my ember cli project. This is the first time I try livereload, so I don't know if this problem is specific to ember cli, or if my Mac environment is not set up for it.
Here is what I have installed
$ ember --version:
version: 0.0.46
node: 0.10.32
npm: 1.4.27
Here is how I got everything running:
$ ember new foo-bar
$ cd foo-bar
$ ember server
version: 0.0.46
Livereload server on port 35729
Serving on http://0.0.0.0:4200
Navigating to http://localhost:4200
in Chrome shows me the ember app.
Now if I make changes to 'application.hbs' and then save it, the browser doesn't update. Is there anything special I need to do to enable livereload?
I realize that this question is similar to live-reload not working with ember-cli, but the answer to that question doesn't solve my problem.
This is a known issue with 0.0.46 at the moment. You can manually add this script tag to app/index.html
to work around it.
<script src="http://localhost:35729/livereload.js?snipver=1" type="text/javascript"></script>
这篇关于ember cli和livereload:如何让它上班?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!