[deploy] Bug Fix: Refresh Hypershield after db:prepare if Enabled (#9353)

This commit is contained in:
Molly Struve 2020-07-16 13:50:22 -05:00 committed by GitHub
parent e9cafe5de6
commit 397c9ed2bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,3 +13,7 @@ namespace :app_initializer do
SiteConfig.health_check_token ||= SecureRandom.hex(10)
end
end
if ENV["ENABLE_HYPERSHIELD"].present?
Rake::Task["db:prepare"].enhance(["hypershield:refresh"])
end