A platform for community discussion. Free, open, simple.
FIX: Seed needs to run before optimizing site icons.
Guo Xiang Tan715ddf386185
diff --git a/lib/tasks/db.rake b/lib/tasks/db.rakeindex e6096e8f670..e8d3c42e7d3 100644--- a/lib/tasks/db.rake+++ b/lib/tasks/db.rake@@ -158,12 +158,15 @@ task 'multisite:migrate' => ['db:load_config', 'environment', 'set_locale'] do |execute_concurently(concurrency, exceptions) do |db|- if !Discourse.skip_post_deployment_migrations? && ENV['SKIP_OPTIMIZE_ICONS'] != '1'- SiteIconManager.ensure_optimized!+ if !Discourse.skip_post_deployment_migrations?if ENV['SKIP_SEED'] != '1'puts "Seeding #{db}"SeedFu.seed(seed_paths)end++ if ENV['SKIP_OPTIMIZE_ICONS'] != '1'+ SiteIconManager.ensure_optimized!+ endendend