0
0
Fork 0

Change Active Record Encryption variable check to check for emptiness (#32537)

This commit is contained in:
Claire 2024-10-16 10:43:45 +02:00 committed by GitHub
parent 6c87c76e18
commit 6ff1954bdb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

@ -10,7 +10,9 @@
ENV[key] = SecureRandom.hex(64)
end
value = ENV.fetch(key) do
value = ENV.fetch(key, '')
if value.blank?
abort <<~MESSAGE
Mastodon now requires that these variables are set: