0

I am running Rails 3.2.3 and when I run

rake asset:precompile

It takes round 40 minutes to complete.

The follow is in my assets group

gem 'sass-rails',   '~> 3.2.3'
  gem 'bootstrap-sass', '~> 2.0.1'
  gem 'coffee-rails', '~> 3.2.1'

  # See https://github.com/sstephenson/execjs#readme for more supported runtimes
  gem 'therubyracer'

  gem 'uglifier', '>= 1.0.3'

This is running on my local development box. It takes 2,338 seconds which is about 40 minutes. If don't compile locally Heroku times out at round 500 seconds. I have heard people have issues with 1 to 3 minute compiles. But this is way more. What could be the problem?

UPDATE: Applcation.js (gist) Application.css (gist)

Mab879
  • 608
  • 16
  • 33
  • is it possible for you to gist the contents of your manifest files that are attempting to be compiled? (eg: application.css / application.js etc ...) – Matenia Rossides Apr 16 '12 at 16:09
  • Have you tried to do this workaround? http://stackoverflow.com/questions/7537474/rake-assetsprecompile-is-slow – Kirk M. Apr 17 '12 at 20:04
  • I am doing this on development box. – Mab879 Apr 17 '12 at 22:44
  • where you able to find a solution Mab879? i have been banging my head on this problem for a while now.. – ZX12R May 03 '12 at 09:07
  • The solution was have all of the files the need Bootstrap, from Twitter, to be in application.css.scss so that @import 'bootstrap' is only called once. – Mab879 May 21 '12 at 01:23

1 Answers1

1

The solution was have all of the files the need Bootstrap, from Twitter, to be in application.css.scss so that @import 'bootstrap' is only called once

Mab879
  • 608
  • 16
  • 33