5

Our RoR app uses quite a few assets that need to be precompiled. It usually took several minutes for assets:precompile to run.

However recently something very strange happened: simple rake assets:precompile never ends (waited few hours).

I've found a workaround:

rake assets:precompile --trace

However it would be great to fix it anyways. Any ideas about a reason?

madutis
  • 51
  • 3

2 Answers2

1

Does it take forever on your local machine or on the production server?

I had a similar thing when I deployed my app to a AWS micro instance. It took to much CPU and then AWS limits the cpu. See http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts_micro_instances.html

Now I precompile my assets locally and the problem is gone.

JeroenKnoops
  • 373
  • 1
  • 3
  • 10
0

I had this same issue and came across this awesome gem (by Steve Agalloco) via a gist somewhere. Anyway, works a charm!

https://github.com/spagalloco/capistrano-local-precompile

Tyrone Wilson
  • 4,328
  • 2
  • 31
  • 35