FIX: Ensure JS transpiler is available for multisite-migrate (#24136)

Previously done for the normal `db:migrate` command in 1e59e18ad2
This commit is contained in:
David Taylor 2023-10-27 09:59:41 +01:00 committed by GitHub
parent db880d8ed7
commit e2bb84757e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,7 +116,12 @@ class SeedHelper
end
end
task "multisite:migrate" => %w[db:load_config environment set_locale] do |_, args|
task "multisite:migrate" => %w[
db:load_config
environment
set_locale
assets:precompile:theme_transpiler
] do |_, args|
raise "Multisite migrate is only supported in production" if ENV["RAILS_ENV"] != "production"
DistributedMutex.synchronize(