Skip to content

Commit 2cccfa7

Browse files
committed
Remove legacy /healthcheck route
govuk-puppet and govuk-aws have now been updated to only use the new routes, so the old one is no longer needed. See RFC 141 for more information.
1 parent 074dd1a commit 2cccfa7

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ ADD . $APP_HOME
1919

2020
RUN GOVUK_WEBSITE_ROOT=https://www.gov.uk GOVUK_APP_DOMAIN=www.gov.uk RAILS_ENV=production bundle exec rails assets:precompile
2121

22-
HEALTHCHECK CMD curl --silent --fail localhost:$PORT/healthcheck || exit 1
22+
HEALTHCHECK CMD curl --silent --fail localhost:$PORT/healthcheck/ready || exit 1
2323

2424
CMD foreman run web

config/routes.rb

-5
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@
88

99
mount GovukPublishingComponents::Engine, at: "/component-guide"
1010

11-
get "/healthcheck",
12-
to: GovukHealthcheck.rack_response(
13-
GovukHealthcheck::RailsCache,
14-
)
15-
1611
get "/healthcheck/live", to: proc { [200, {}, %w[OK]] }
1712
get "/healthcheck/ready", to: GovukHealthcheck.rack_response(
1813
GovukHealthcheck::RailsCache,

0 commit comments

Comments
 (0)