How to optimize the asset compilation rake task in Rails 3.1 while deploying eating up the all memory?

此生再无相见时 提交于 2019-12-14 04:11:37

问题


The production box is of 768MB node at Linode. When I am deploying a Rails 3.1 app, the asset compilation takes place which invokes other 2 rake tasks with the Rails app env loaded.

So, one task is occupying 30% of the memory which makes the 3 tasks to 90% of the memory and the capistrano command dies with zlib(finalizer): the stream was freed prematurely. error.

Its getting me frustrated since it has already ate my whole day!!


回答1:


This is know rails issue. You can find one solution here



来源:https://stackoverflow.com/questions/8212154/how-to-optimize-the-asset-compilation-rake-task-in-rails-3-1-while-deploying-eat

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!