【问题标题】:Ember.js: livereload server not workingEmber.js:livereload 服务器不工作
【发布时间】:2016-05-11 09:37:11
【问题描述】:

几天前一切都很好。但是现在,当我在我的 mac 操作系统上运行 Ember 时:

ember s

我有:

version: 2.4.1
Livereload server on http://localhost:49152
Serving on http://localhost:4200/

Build successful - 849ms.

Slowest Trees                                 | Total               
----------------------------------------------+---------------------
SourceMapConcat: Concat: Vendor /assets/ve... | 100ms               
Babel                                         | 75ms                
Babel                                         | 59ms                

Slowest Trees (cumulative)                    | Total (avg)         
----------------------------------------------+---------------------
Babel (13)                                    | 305ms (23 ms)       
SourceMapConcat: Concat: Vendor /asset... (1) | 100ms 

当我在控制台中更改文件时:

file changed templates/components/prospect-panel.hbs

Build successful - 200ms.

Slowest Trees (cumulative)                    | Total (avg)         
----------------------------------------------+---------------------
Babel (13)                                    | 23ms (1 ms)         

但在浏览器中我看到:

ember-cli-live-reload.js:6 

GET http://localhost:49152/livereload.js?snipver=1 net::ERR_EMPTY_RESPONSE

为什么http://localhost:49152/livereload.js?snipver=1 不可访问?

【问题讨论】:

    标签: javascript ember.js livereload


    【解决方案1】:

    可能有任何其他应用程序正在使用此端口。您可以通过将以下行添加到 .ember-cli 文件来更改端口。

    "live-reload-port":49155
    

    【讨论】:

      猜你喜欢
      • 2020-12-02
      • 2010-09-29
      • 2011-03-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多