FIX: don't precompile if we have no themes table
This commit is contained in:
parent
4161a7abec
commit
8370b4b1b7
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue