BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
9898f9b4
Commit
9898f9b4
authored
May 05, 2016
by
DJ Mountney
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set the standard health_check options to include the cache check.
parent
67dc3b9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
28 deletions
+3
-28
health_check.rb
config/initializers/health_check.rb
+3
-28
No files found.
config/initializers/health_check.rb
View file @
9898f9b4
# 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment