Add maintenance mode setting checks
This commit is contained in:
		
							parent
							
								
									9c5d2df50b
								
							
						
					
					
						commit
						f8b96856c8
					
				
					 1 changed files with 14 additions and 0 deletions
				
			
		|  | @ -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! | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Eric Schultz
						Eric Schultz