From 42b72a983408ee6976d0430ab220053579469b2a Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 13 Oct 2015 10:14:48 +1100 Subject: [PATCH] parallel is not really helping, need a diff approach. --- lib/tasks/assets.rake | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake index d52f42123c1..6dcc83a539d 100644 --- a/lib/tasks/assets.rake +++ b/lib/tasks/assets.rake @@ -77,20 +77,14 @@ end task 'assets:precompile:css' => 'environment' do STDERR.puts "Start compiling CSS: #{Time.zone.now}" - opts = {} - if (threads = ENV['CSS_COMPILE_THREADS'].to_i) > 0 - opts[:threads] = threads - end - - RailsMultisite::ConnectionManagement.each_connection(opts) do |db| + RailsMultisite::ConnectionManagement.each_connection do |db| # Heroku precompiles assets before db migration, so tables may not exist. # css will get precompiled during first request instead in that case. if ActiveRecord::Base.connection.table_exists?(ColorScheme.table_name) STDERR.puts "Compiling css for #{db}" [:desktop, :mobile, :desktop_rtl, :mobile_rtl].each do |target| - DiscourseStylesheets.compile(target) - STDERR.puts "target: #{target}" + STDERR.puts "target: #{target} #{DiscourseStylesheets.compile(target)}" end end end