mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Run seeds irregardless of post deploy migration flag.
Follow up to 01937b2d
This commit is contained in:
parent
01937b2de2
commit
c16ad39f8e
@ -157,13 +157,13 @@ task 'multisite:migrate' => ['db:load_config', 'environment', 'set_locale'] do |
|
|||||||
SeedFu.seed(seed_paths, /001_refresh/)
|
SeedFu.seed(seed_paths, /001_refresh/)
|
||||||
|
|
||||||
execute_concurently(concurrency, exceptions) do |db|
|
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'
|
if !Discourse.skip_post_deployment_migrations? && ENV['SKIP_OPTIMIZE_ICONS'] != '1'
|
||||||
SiteIconManager.ensure_optimized!
|
SiteIconManager.ensure_optimized!
|
||||||
if ENV['SKIP_SEED'] != '1'
|
|
||||||
puts "Seeding #{db}"
|
|
||||||
SeedFu.seed(seed_paths)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user