Question
capistrano fails for rails application
Capistrano deploy tasks keep failing giving the following error:
Tasks: TOP => deploy:assets:precompile
(See full trace by running task with –trace)
The deploy has failed with an error: Exception while executing as rails@demo.anakhsoft.com: rake exit status: 1
rake stdout: Nothing written
rake stderr: rake aborted!
Errno::ENOMEM: Cannot allocate memory - nodejs
(in /home/rails/releases/20141230062531/app/assets/javascripts/active_admin.js.coffee)
Is it a lack of memory issue or something else?
My droplet is 104.236.118.121
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×
I followed the solution posted at https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-12-04
to fix the issue