You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MaintenanceMode.enableMaintenanceMode.as_json# => { "enabled": true, "message": null }MaintenanceMode.enable"we'll be back soon"MaintenanceMode.as_json# => { "enabled": true, "message": "we'll be back soon" }MaintenanceMode.enabled?# => trueMaintenanceMode.message# => "we'll be back soon"MaintenanceMode.disableMaintenanceMode.enabled?# => false
This would mean I can choose to indicate maintenance by flipping a switch on redis, and fetch message from the database.
The text was updated successfully, but these errors were encountered:
What do you think if we provide a common interface, so anyone can implement their own persistence strategy?
Turnout is tied too closely to the file strategy.
https://github.com/GoodGuide/maintenance-mode-gem comes into my mind. It provides the following interface:
This would mean I can choose to indicate maintenance by flipping a switch on redis, and fetch message from the database.
The text was updated successfully, but these errors were encountered: