Revert "FIX: Seed needs to run before optimizing site icons."

This reverts commit 715ddf38618555c7ba798f8526f85f79a7a5d365.
This commit is contained in:
Guo Xiang Tan 2020-06-26 11:03:47 +08:00
parent 715ddf3861
commit 01937b2de2
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20

View File

@ -158,15 +158,12 @@ task 'multisite:migrate' => ['db:load_config', 'environment', 'set_locale'] do |
execute_concurently(concurrency, exceptions) do |db|
if !Discourse.skip_post_deployment_migrations?
if !Discourse.skip_post_deployment_migrations? && ENV['SKIP_OPTIMIZE_ICONS'] != '1'
SiteIconManager.ensure_optimized!
if ENV['SKIP_SEED'] != '1'
puts "Seeding #{db}"
SeedFu.seed(seed_paths)
end
if ENV['SKIP_OPTIMIZE_ICONS'] != '1'
SiteIconManager.ensure_optimized!
end
end
end