mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 15:25:35 +08:00
DEV: Add skip seed flag (#10116)
* add a flag to skip seed * only seed when running post deployment migrations
This commit is contained in:
parent
855d423791
commit
01b6349a67
|
@ -157,11 +157,13 @@ task 'multisite:migrate' => ['db:load_config', 'environment', 'set_locale'] do |
|
|||
SeedFu.seed(seed_paths, /001_refresh/)
|
||||
|
||||
execute_concurently(concurrency, exceptions) do |db|
|
||||
puts "Seeding #{db}"
|
||||
SeedFu.seed(seed_paths)
|
||||
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user