on_maintenance v0.5.2 API Reference

Modules

Disables maintenance mode for application

Sets an application to maintenance mode. It can accept --retry-after as argument

Creates “.on_maintenance.sqlite3” database which contains only 1 table. The table, named “on_maintenance_configs”, is initialized with 1 row of data:

  • 0 value for on_maintenance means the application is not in maintenance mode.
  • 1 value for retry_after no retry-after header for 503 response

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