Skip to content

Commit

Permalink
Merge pull request #2088 from alphagov/msw/rfc-141-cleanup
Browse files Browse the repository at this point in the history
Remove legacy /healthcheck route
  • Loading branch information
barrucadu authored May 7, 2021
2 parents 1a9b3c6 + 2cccfa7 commit e4c83ca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ ADD . $APP_HOME

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

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

CMD foreman run web
5 changes: 0 additions & 5 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@

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

get "/healthcheck",
to: GovukHealthcheck.rack_response(
GovukHealthcheck::RailsCache,
)

get "/healthcheck/live", to: proc { [200, {}, %w[OK]] }
get "/healthcheck/ready", to: GovukHealthcheck.rack_response(
GovukHealthcheck::RailsCache,
Expand Down

0 comments on commit e4c83ca

Please sign in to comment.