FIX: Compile js-processor before db:migrate (#23229)
In production env it's possible to have migrations run before js-processor is available.
This commit is contained in:
parent
39b598f304
commit
1e59e18ad2
|
@ -216,8 +216,12 @@ task "multisite:migrate" => %w[db:load_config environment set_locale] do |_, arg
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# we need to run seed_fu every time we run rake db:migrate
|
task "db:migrate" => %w[
|
||||||
task "db:migrate" => %w[load_config environment set_locale] do |_, args|
|
load_config
|
||||||
|
environment
|
||||||
|
set_locale
|
||||||
|
assets:precompile:js_processor
|
||||||
|
] do |_, args|
|
||||||
DistributedMutex.synchronize(
|
DistributedMutex.synchronize(
|
||||||
"db_migration",
|
"db_migration",
|
||||||
redis: Discourse.redis.without_namespace,
|
redis: Discourse.redis.without_namespace,
|
||||||
|
|
Loading…
Reference in New Issue