FIX: `multisite:migrate` failing to properly seed data.
This commit is contained in:
parent
25db91e351
commit
0384b6d910
|
@ -151,10 +151,6 @@ task 'multisite:migrate' => ['db:load_config', 'environment', 'set_locale'] do |
|
||||||
execute_concurently(concurrency, exceptions) do |db|
|
execute_concurently(concurrency, exceptions) do |db|
|
||||||
puts "Migrating #{db}"
|
puts "Migrating #{db}"
|
||||||
ActiveRecord::Tasks::DatabaseTasks.migrate
|
ActiveRecord::Tasks::DatabaseTasks.migrate
|
||||||
|
|
||||||
if !Discourse.skip_post_deployment_migrations? && ENV['SKIP_OPTIMIZE_ICONS'] != '1'
|
|
||||||
SiteIconManager.ensure_optimized!
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
seed_paths = DiscoursePluginRegistry.seed_paths
|
seed_paths = DiscoursePluginRegistry.seed_paths
|
||||||
|
@ -163,6 +159,10 @@ task 'multisite:migrate' => ['db:load_config', 'environment', 'set_locale'] do |
|
||||||
execute_concurently(concurrency, exceptions) do |db|
|
execute_concurently(concurrency, exceptions) do |db|
|
||||||
puts "Seeding #{db}"
|
puts "Seeding #{db}"
|
||||||
SeedFu.seed(seed_paths)
|
SeedFu.seed(seed_paths)
|
||||||
|
|
||||||
|
if !Discourse.skip_post_deployment_migrations? && ENV['SKIP_OPTIMIZE_ICONS'] != '1'
|
||||||
|
SiteIconManager.ensure_optimized!
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
$stdout = old_stdout
|
$stdout = old_stdout
|
||||||
|
|
Loading…
Reference in New Issue