Have you tried different text editors?
I can’t find any configuration for live_reload
and watchers
in your config/dev.exs
. It usually looks like
...
live_reload: [
patterns: [
~r{priv/static/.*(js|css|png|jpeg|jpg|gif|svg)$},
~r{priv/gettext/.*(po)$},
~r{lib/web/views/.*(ex)$},
~r{lib/web/templates/.*(eex)$}
]
]
and
...
watchers: [
node: [
"node_modules/brunch/bin/brunch",
"watch",
"--stdin",
cd: Path.expand("../assets", __DIR__)
]
]
and in lib/endpoint.ex
you have
if code_reloading? do
plug Phoenix.CodeReloader
end
instead of
if code_reloading? do
socket("/phoenix/live_reload/socket", Phoenix.LiveReloader.Socket)
plug(Phoenix.LiveReloader)
plug(Phoenix.CodeReloader)
end
Try generating a new phoenix project with mix phx.new my_app
, verify that live reload works there, and diff against nilcrud to see what exactly you are missing.