我刚刚将项目升级到Phoenix 1.0。出于某种原因,当我更改文件时,phoenix live reload停止工作。是否有一个地方我应该首先尝试获得一些有关它停止工作的原因?这是我的mix.exs的样子:
defp deps do
[{:phoenix, "~> 1.0"},
{:phoenix_html, "~> 2.1"},
{:phoenix_live_reload, "~> 1.0"},
{:cowboy, "~> 1.0"},
{:shouldi, only: :test},
{:meck, "~> 0.8.3"}]
端
答案 0 :(得分:1)
您是否已检入config / dev.exs文件并看到(类似):
# Watch static and templates for browser reloading.
config :polyvox, Polyvox.Endpoint,
live_reload: [
patterns: [
~r{priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$},
~r{web/views/.*(ex)$},
~r{web/templates/.*(eex)$}
]
]