Trying to fix healthchecks again that suddenly fail
This commit is contained in:
parent
51c297c107
commit
ea4e04dd33
2 changed files with 1 additions and 3 deletions
2
CHECKS
2
CHECKS
|
|
@ -1,3 +1 @@
|
|||
WAIT=10
|
||||
ATTEMPTS=10
|
||||
/healthcheck
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue