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:
Jarek Radosz 2023-08-24 19:24:43 +02:00 committed by GitHub
parent 39b598f304
commit 1e59e18ad2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -216,8 +216,12 @@ task "multisite:migrate" => %w[db:load_config environment set_locale] do |_, arg
end
end
# we need to run seed_fu every time we run rake db:migrate
task "db:migrate" => %w[load_config environment set_locale] do |_, args|
task "db:migrate" => %w[
load_config
environment
set_locale
assets:precompile:js_processor
] do |_, args|
DistributedMutex.synchronize(
"db_migration",
redis: Discourse.redis.without_namespace,