on_maintenance v0.5.2 Plug.OnMaintenance
Plug.OnMaintenance, an Elixir Plug, is used to disable access to your application for some length of time. Putting application in maintenance mode can be done programmatically or via mix tasks.
Note: This plug must be the first in pipeline of plugs.
Examples
defmodule AwesomeApp do
plug Plug.OnMaintenance
# ...
end