Ember.js: livereload 服务器不工作
Ember.js: livereload server not working
几天前一切都很好。但是现在,当我 运行 Ember 在我的 mac os:
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
可能有任何其他应用程序正在使用此端口。您可以通过将以下行添加到 .ember-cli
文件来更改端口。
"live-reload-port":49155
几天前一切都很好。但是现在,当我 运行 Ember 在我的 mac os:
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
可能有任何其他应用程序正在使用此端口。您可以通过将以下行添加到 .ember-cli
文件来更改端口。
"live-reload-port":49155