I would like to do some cleanup after phoenix quits (in development mode)
Thought something like this would work in application.ex
but it does not
def stop(state) do
IO.puts("App stopped")
Logger.debug(state)
end
Please note that I run it locally in devmode via mix phx.server
and is stopped using ctrl-c