How can I eliminate extremely slow rake assets: precompiling on a hero?

rake assets:precompile is fast (<10 seconds) both locally and when I run it on the hero:

heroku run time rake assets:precompile --trace (clear first)

It takes about 10 minutes to deploy to the hero.

How can I understand what the problem is and fix it?

For reference, I tried all of this:

We are on Rails 3.2.13, Ruby 2.0.0p353

+4
source share
1

memcached/redis, , :

redis/memcached w/Heroku (http://addons.heroku.com/) ,

- ( config/environments/production.rb):

config.assets.cache_store = [ :redis_store,  {
  url: ENV['REDIS_URL'] || 'redis://127.0.0.1/0',
  namespace: 'assets'
}]

< 30 , .

0

Source: https://habr.com/ru/post/1531551/


All Articles