mirror of
https://github.com/discourse/discourse.git
synced 2025-03-20 23:35:53 +08:00
FIX: Add additional rescue for assets:precompile
This error can be caused if assets are precompiled before the database has been migrated
This commit is contained in:
parent
ad87b0d662
commit
bc52437153
@ -58,7 +58,7 @@ task 'assets:precompile:css' => 'environment' do
|
||||
STDERR.puts "Compiling css for #{db} #{Time.zone.now}"
|
||||
begin
|
||||
Stylesheet::Manager.precompile_css
|
||||
rescue PG::UndefinedColumn => e
|
||||
rescue PG::UndefinedColumn, ActiveModel::MissingAttributeError => e
|
||||
STDERR.puts "#{e.class} #{e.message}: #{e.backtrace.join("\n")}"
|
||||
STDERR.puts "Skipping precompilation of CSS cause schema is old, you are precompiling prior to running migrations."
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user