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!