summaryrefslogtreecommitdiff
path: root/config/initializers
diff options
context:
space:
mode:
authorDJ Mountney <david@twkie.net>2016-05-05 12:25:02 -0700
committerDJ Mountney <david@twkie.net>2016-05-10 08:24:09 -0700
commit9898f9b4e6b80edaa914675edfa9b229498b31fe (patch)
treee8a78b8b938bea24536fd4619dc2f4a7b2b4e3c3 /config/initializers
parent67dc3b9c1131b5a7f3f861a0fe35169fda5cd398 (diff)
downloadgitlab-ce-9898f9b4e6b80edaa914675edfa9b229498b31fe.tar.gz
Set the standard health_check options to include the cache check.
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/health_check.rb31
1 files changed, 3 insertions, 28 deletions
diff --git a/config/initializers/health_check.rb b/config/initializers/health_check.rb
index c111cfdf5ce..a93e4273030 100644
--- a/config/initializers/health_check.rb
+++ b/config/initializers/health_check.rb
@@ -1,28 +1,3 @@
-# HealthCheck.setup do |config|
-# # Text output upon success
-# config.success = 'success'
-#
-# # Timeout in seconds used when checking smtp server
-# config.smtp_timeout = 30.0
-#
-# # http status code used when plain text error message is output
-# # Set to 200 if you want your want to distinguish between partial (text does not include success) and
-# # total failure of rails application (http status of 500 etc)
-# config.http_status_for_error_text = 500
-#
-# # http status code used when an error object is output (json or xml)
-# # Set to 200 if you want your want to distinguish between partial (healthy property == false) and
-# # total failure of rails application (http status of 500 etc)
-# config.http_status_for_error_object = 500
-#
-# # You can customize which checks happen on a standard health check
-# config.standard_checks = [ 'database', 'migrations', 'custom' ]
-#
-# # You can set what tests are run with the 'full' or 'all' parameter
-# config.full_checks = ['database', 'migrations', 'custom', 'email', 'cache']
-#
-# # Add one or more custom checks that return a blank string if ok, or an error message if there is an error
-# config.add_custom_check do
-# any code that returns blank on success and non blank string upon failure
-# end
-# end
+HealthCheck.setup do |config|
+ config.standard_checks = [ 'database', 'migrations', 'cache' ]
+end