Answer the question
In order to leave comments, you need to log in
Errno::ENOMEM - rails out of memory to process CSS?
I'm building a website for RoR, the following error occurs periodically:
Errno::ENOMEM in Pages#index
Cannot allocate memory - node
(in /var/www/html/my_app/app/assets/stylesheets/pages.css.scss)
<%= stylesheet_link_tag "pages" %>
Answer the question
In order to leave comments, you need to log in
The problem was solved by precompiling css and js (rake:precompile). There was not enough RAM to generate aggregated styles and scripts on the fly.
All in all, according to the Gemfile provided, it looks like there is an excessive amount of gems being used.
All of them, unsurprisingly, consume memory in one way or another, which eventually becomes the scapegoat for SCSS preprocessing.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question