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
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This comment has been deleted
Glad to hear you got it working! The error:
Errno::ENOMEM: Cannot allocate memory
indeed means that you ran out of memory. Precompiling assets can take a lot of memory. Adding a swap file is a great way to allow yourself a little extra room without needing to scale up the whole server.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.