attempt to handle one more multisite edge case
This commit is contained in:
parent
b7322b05a0
commit
1dc55bcc5b
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue