Search code examples
elixirphoenix-frameworkumbrella

Phoenix umbrella app not hot-reloading code


I have trouble with code reload in my Phoenix 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?


Solution

  • I am guessing you are running mix phx.server from apps/app_web. This is a common pitfall with umbrella projects, where you need to start the server from the root directory of the umbrella project for code reloading to work properly.