From ea4e04dd338650a87fba5fb7d166b2c6a73806c4 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Mon, 26 Apr 2021 23:54:37 +0200 Subject: [PATCH] Trying to fix healthchecks again that suddenly fail --- CHECKS | 2 -- config/initializers/healthcheck.rb | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/CHECKS b/CHECKS index c624228..0923d94 100644 --- a/CHECKS +++ b/CHECKS @@ -1,3 +1 @@ -WAIT=10 -ATTEMPTS=10 /healthcheck diff --git a/config/initializers/healthcheck.rb b/config/initializers/healthcheck.rb index 5706119..6498176 100644 --- a/config/initializers/healthcheck.rb +++ b/config/initializers/healthcheck.rb @@ -20,7 +20,7 @@ Healthcheck.configure do |config| # config.add_check :environments, -> { Dotenv.require_keys('ENV_NAME', 'ANOTHER_ENV') } config.add_check :env, -> { ['SALSA_OAUTH_KEY', 'SALSA_OAUTH_SECRET'].each do |key| - puts "checking for environment variable #{key}" + #puts "checking for environment variable #{key}" raise "Env variable #{key} not set" unless ENV.key?(key) end }