Feature #42008 ยป rails-health-check.diff
config/routes.rb | ||
---|---|---|
412 | 412 |
get 'help/wiki_syntax/(:type)', :controller => 'help', :action => 'show_wiki_syntax', :constraints => { :type => /detailed/ }, :as => 'help_wiki_syntax' |
413 | 413 |
get 'help/code_highlighting', :controller => 'help', :action => 'show_code_highlighting', :as => 'help_code_highlighting' |
414 | 414 | |
415 |
# Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500. |
|
416 |
# Can be used by load balancers and uptime monitors to verify that the app is live. |
|
417 |
get "up" => "rails/health#show", as: :rails_health_check |
|
418 | ||
415 | 419 |
Redmine::Plugin.directory.glob("*/config/routes.rb").sort.each do |plugin_routes_path| |
416 | 420 |
instance_eval(plugin_routes_path.read, plugin_routes_path.to_s) |
417 | 421 |
rescue SyntaxError, StandardError => e |