Reputation: 5826
I'm experiencing the below error when deploying to Elastic beanstalk. This is a ruby app running Rails 4.1.9 and Ruby 2.1.4 on Puma.
The stacktrace is as follows:
Errno::ENOMEM: Cannot allocate memory - node
(in /var/app/ondeck/app/assets/javascripts/my_javascript.js)
My javascript file is pretty basic, it looks like this
//= require jquery
//= require jquery_ujs
//= require ../../../vendor/assets/components/bootstrap/dist/js/bootstrap.min
//= require ../../../vendor/assets/components/thirdpartylib.js
... and then basic functions
Unsure why exactly this is failing. I have not changed anything in the javascript file or the vendor assets.
Any ideas on how to resolve will be greatly appreciated.
Upvotes: 3
Views: 988
Reputation: 5826
The issue has been resolved by removing a large amount of assets that were not needed or used, for instance i had the entire bootstrap project source and a few 3rd party library project source tree's and corresponding files, instead of just the src files that i was using.
Upvotes: 4