Skip to content

Commit

Permalink
Update lib/phoenix/code_reloader/server.ex
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatanklosko authored Oct 21, 2024
1 parent d4fcb1b commit f4fab1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/phoenix/code_reloader/server.ex
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ defmodule Phoenix.CodeReloader.Server do
[] ->
# If the manifests are more recent than the timestamp,
# someone updated this app behind the scenes, so purge all beams.
# TODO: remove once we depend on Elixir 1.18
if purge_fallback? and Mix.Utils.stale?(manifests, [timestamp]) do
purge_modules(Path.join(Mix.Project.app_path(config), "ebin"))
end
Expand Down

0 comments on commit f4fab1c

Please sign in to comment.