mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 22:35:03 +08:00
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:
@ -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,
|
||||
|
Reference in New Issue
Block a user