rake assets:precompile taking extremely long to complete

后端 未结 4 1229
情深已故
情深已故 2020-12-15 23:02

In my dev sandbox

RAILS_ENV=production rake assets:precompile

is taking over 4 minutes to complete. Is this normal. On heroku it is taking

4条回答
  •  佛祖请我去吃肉
    2020-12-15 23:26

    We had orders of magnitude speedup using this answer:

    EXECJS_RUNTIME='Node' JRUBY_OPTS="-J-d32 -X-C" RAILS_ENV=development bundle exec rake war

    http://avinmathew.com/improving-rails-asset-precompile-times-on-jruby/

提交回复
热议问题