From f8b96856c86835dcec36280e99482bc5422e4bbb Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Fri, 20 Jul 2018 16:37:08 -0500 Subject: [PATCH] Add maintenance mode setting checks --- config/environment.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/config/environment.rb b/config/environment.rb index b8209deb..b036d1a3 100755 --- a/config/environment.rb +++ b/config/environment.rb @@ -268,6 +268,20 @@ Config.schema do end end + # the settings to get into maintenance_mode + optional(:maintenance).schema do + # true if you want to be in maintenance mode, otherwise false + required(:maintenance_mode).filled(:bool?) + + # the token you pass into /users/sign_in to actually get to + # a signin page during maintenance mode + optional(:maintenance_token).filled(:str?) + + # the url, absolute or relative, that visitors should be redirected to + optional(:maintenance_page).filled(:str?) + + end + end Settings.reload!