[deploy] Bug Fix:Run Hypershield Refresh AFTER db:prepare (#9546)
This commit is contained in:
parent
f9137b2abd
commit
34458d5de9
1 changed files with 6 additions and 1 deletions
|
|
@ -15,5 +15,10 @@ namespace :app_initializer do
|
|||
end
|
||||
|
||||
if ENV["ENABLE_HYPERSHIELD"].present?
|
||||
Rake::Task["db:prepare"].enhance(["hypershield:refresh"])
|
||||
# enhance must be passed a block here to ensure that our hypershield task
|
||||
# runs AFTER db:prepare. Passing it as an argument will cause it to run BEFORE
|
||||
# https://ruby-doc.org/stdlib-2.0.0/libdoc/rake/rdoc/Rake/Task.html#method-i-enhance
|
||||
Rake::Task["db:prepare"].enhance do
|
||||
Rake::Task["hypershield:refresh"]
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue