on_maintenance v0.7.0 Mix.Tasks.Maintenance.InitConfigStore

Creates “.on_maintenance.sqlite3” database which contains only 1 table.

Table “.on_maintenance_configs” will be initialized with 1 row of data:

  • 0 value for on_maintenance column means the application is not in maintenance mode.
  • 0 value for retry_after column means 0 retry-after header for 503 response. This value is not applicable since on_maintenance is 0. When on_maintenance is 1, retry_after must be > 0. This value is the expected duration of maintenance in seconds.

Example

mix maintenance.init_config_store

Summary

Functions

A task needs to implement run which receives a list of command line args

Functions

run(argv)

A task needs to implement run which receives a list of command line args.

Callback implementation for Mix.Task.run/1.