Improved error message for healthcheck
This commit is contained in:
parent
d9e4f7416f
commit
d0612d25ea
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ Healthcheck.configure do |config|
|
||||||
config.add_check :env, -> {
|
config.add_check :env, -> {
|
||||||
keys = %W(SALSA_OAUTH_KEY SALSA_OAUTH_SECRET)
|
keys = %W(SALSA_OAUTH_KEY SALSA_OAUTH_SECRET)
|
||||||
keys.each do |key|
|
keys.each do |key|
|
||||||
puts "checking key"
|
puts "checking for environment variable #{key}"
|
||||||
raise "Env variable #{key} not set" unless ENV.key?(key)
|
raise "Env variable #{key} not set" unless ENV.key?(key)
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue