diff options
author | Go MAEDA <maeda@farend.jp> | 2025-02-06 00:48:09 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2025-02-06 00:48:09 +0000 |
commit | 30872101e96a0c9f28dabac065439c141fa2a4f4 (patch) | |
tree | 3709596bd10e6a0a259a6495446310b8d47e5af5 | |
parent | 1e7330fa52f19a2fdcc47faa68c7b13d10febbf5 (diff) | |
download | redmine-30872101e96a0c9f28dabac065439c141fa2a4f4.tar.gz redmine-30872101e96a0c9f28dabac065439c141fa2a4f4.zip |
Merged r23487 and r23488 from trunk to 6.0-stable (#42008).
git-svn-id: https://svn.redmine.org/redmine/branches/6.0-stable@23490 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | config/routes.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb index 563ffe1e2..03dc70740 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -412,6 +412,10 @@ Rails.application.routes.draw do get 'help/wiki_syntax/(:type)', :controller => 'help', :action => 'show_wiki_syntax', :constraints => { :type => /detailed/ }, :as => 'help_wiki_syntax' get 'help/code_highlighting', :controller => 'help', :action => 'show_code_highlighting', :as => 'help_code_highlighting' + # Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500. + # Can be used by load balancers and uptime monitors to verify that the app is live. + get "up" => "rails/health#show", :as => :rails_health_check + Redmine::Plugin.directory.glob("*/config/routes.rb").sort.each do |plugin_routes_path| instance_eval(plugin_routes_path.read, plugin_routes_path.to_s) rescue SyntaxError, StandardError => e |