From 01b6349a67bb41cdfaa61c2dae0524aaeb5217f7 Mon Sep 17 00:00:00 2001 From: Blake Erickson Date: Thu, 25 Jun 2020 10:14:58 -0600 Subject: [PATCH] DEV: Add skip seed flag (#10116) * add a flag to skip seed * only seed when running post deployment migrations --- lib/tasks/db.rake | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/tasks/db.rake b/lib/tasks/db.rake index 4e5469db407..e6096e8f670 100644 --- a/lib/tasks/db.rake +++ b/lib/tasks/db.rake @@ -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