mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Revert "FIX: Seed needs to run before optimizing site icons."
This reverts commit 715ddf3861.
This commit is contained in:
@@ -158,15 +158,12 @@ task 'multisite:migrate' => ['db:load_config', 'environment', 'set_locale'] do |
|
|||||||
|
|
||||||
execute_concurently(concurrency, exceptions) do |db|
|
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'
|
if ENV['SKIP_SEED'] != '1'
|
||||||
puts "Seeding #{db}"
|
puts "Seeding #{db}"
|
||||||
SeedFu.seed(seed_paths)
|
SeedFu.seed(seed_paths)
|
||||||
end
|
end
|
||||||
|
|
||||||
if ENV['SKIP_OPTIMIZE_ICONS'] != '1'
|
|
||||||
SiteIconManager.ensure_optimized!
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user