attempt to handle one more multisite edge case

This commit is contained in:
Sam Saffron 2017-05-05 13:50:48 -04:00
parent b7322b05a0
commit 1dc55bcc5b

View File

@ -51,7 +51,11 @@ task 'assets:precompile:css' => 'environment' do
if ActiveRecord::Base.connection.table_exists?(Theme.table_name)
STDERR.puts "Compiling css for #{db} #{Time.zone.now}"
Stylesheet::Manager.precompile_css
begin
Stylesheet::Manager.precompile_css
rescue => PG::UndefinedColumn
STDERR.puts "Skipping precompilation of CSS cause schema is old, you are precompiling prior to running migrations."
end
end
end