Code reload in umbrella app not working

phoenix
Tags: #<Tag:0x00007f8ea61e0ac8>

#21

inotify-tools are correctly installed…


#22

FYI: for all those that experience similar issues and stumble over this thread - the issue was caused by a linter plugin in VS Code (https://github.com/elixir-lang/elixir/issues/6547).


#23

Hey, I also have trouble with code reload in my umbrella app.

My umbrella is composed of 2 applications : app and app_web. Any change in app_web is hot reloaded as wanted, but I can’t make the same thing work with code in app.

Where should I start looking?

Thanks,
Christian


#24

Finally got it working by switching to phoenix 1.3.2 and running phx.server from umbrella root (which I couldn’t do with 1.3.1 because of https://github.com/phoenixframework/phoenix/issues/2773)


#25

You don’t have to depend on “inotify-tools” when using Phoenix which depends on “file_system”.

You can edit: “deps/file_system/lib/file_system/backend.ex” where in function “backend_module(nil)” you have exactly what you need to modify.

Available watchers are:
:fs_inotify
:fs_poll

Chose your OS and change to the :fs_poll

That was the first thing I made, because I didn’t want to install “inotify-tools”.