DEV: Run seeds irregardless of post deploy migration flag.

Follow up to 01937b2d
This commit is contained in:
Guo Xiang Tan 2020-06-26 11:04:34 +08:00
parent 01937b2de2
commit c16ad39f8e
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20

View File

@ -157,13 +157,13 @@ task 'multisite:migrate' => ['db:load_config', 'environment', 'set_locale'] do |
SeedFu.seed(seed_paths, /001_refresh/)
execute_concurently(concurrency, exceptions) do |db|
if ENV['SKIP_SEED'] != '1'
puts "Seeding #{db}"
SeedFu.seed(seed_paths)
end
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
end
end