Phoenix v1.3.4 Phoenix.CodeReloader View Source
A plug and module to handle automatic code reloading.
For each request, Phoenix checks if any of the modules previously
compiled requires recompilation via
__phoenix_recompile__?/0 and then
mix compile for sources exclusive to the
To avoid race conditions, all code reloads are funneled through a sequential call operation.
Link to this section Summary
Link to this section Functions
API used by Plug to invoke the code reloader on every request.
Reloads code for the current Mix project by invoking the
This is configured in your application environment like:
config :your_app, YourApp.Endpoint, reloadable_compilers: [:gettext, :phoenix, :elixir]
Keep in mind
:reloadable_compilers must be a subset of the
:compilers specified in
project/0 in your