Health Check Endpoint in Rails 7.1

Поділитися
Вставка
  • Опубліковано 1 лют 2025

КОМЕНТАРІ • 3

  • @andyjeffries
    @andyjeffries Рік тому +3

    How does this differ (aside from visual display which healthcare monitors won't care about) from putting `get 'up' => proc { [200, {}, ["OK"]] }` in the routes.rb? If the Rails app didn't boot, it won't respond to the route either way (so the client will get an error)

    • @collinjilbert
      @collinjilbert Рік тому +5

      Not much, just a new default already there for you so now you don't have to remember to add that yourself. Thanks.

    • @mikopiko
      @mikopiko Рік тому

      Yeah I don't think there is any reason to return anything other than 200