Skip to content Skip to sidebar Skip to footer

Poor Time Performance Of 'rake Assets:precompile'

Running: bundle exec rake assets:precompile RAILS_ENV=production Takes about 6 minutes for 15 .js files of about 250kb total. It should not take this long surely? I see the 'Mic

Solution 1:

Which server are you running? Is it Ubuntu, Debian, Mac? Make sure you have this in your Gemfile:

group :productiondo
  gem "libv8"
  gem "therubyracer", :require => 'v8'end

See this page for more info: https://github.com/rails/rails/issues/2537

You can also try to remove unused files in your app/assets/* folders. Time is most spent on JS compilation.

Post a Comment for "Poor Time Performance Of 'rake Assets:precompile'"