FIX: don't precompile if we have no themes table

This commit is contained in:
Sam 2017-04-14 10:33:35 -04:00
parent 4161a7abec
commit 8370b4b1b7
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ task 'assets:precompile:css' => 'environment' do
# Heroku precompiles assets before db migration, so tables may not exist. # Heroku precompiles assets before db migration, so tables may not exist.
# css will get precompiled during first request instead in that case. # css will get precompiled during first request instead in that case.
if ActiveRecord::Base.connection.table_exists?(ColorScheme.table_name) if ActiveRecord::Base.connection.table_exists?(Theme.table_name)
STDERR.puts "Compiling css for #{db} #{Time.zone.now}" STDERR.puts "Compiling css for #{db} #{Time.zone.now}"
Stylesheet::Manager.precompile_css Stylesheet::Manager.precompile_css
end end