How to optimize the asset compilation rake task in Rails 3.1 while deploying eating up the all memory?
问题 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 来源: