mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 18:03:43 +08:00
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:
parent
db880d8ed7
commit
e2bb84757e
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue
Block a user