2016-06-01 15:07:27 +02:00
|
|
|
class PingController < ApplicationController
|
|
|
|
def index
|
2016-07-06 10:06:28 +02:00
|
|
|
Rails.logger.silence do
|
|
|
|
if (ActiveRecord::Base.connected?)
|
2018-01-24 14:44:28 +01:00
|
|
|
head :ok
|
2016-07-06 10:06:28 +02:00
|
|
|
else
|
2018-01-24 14:44:28 +01:00
|
|
|
head :internal_server_error
|
2016-07-06 10:06:28 +02:00
|
|
|
end
|
2016-06-01 15:07:27 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|