engineyard / ey-docs

Engine Yard Docs
http://docs.engineyard.com
28 stars 11 forks source link

Asset pipeline optimization #145

Closed ryanong closed 12 years ago

ryanong commented 12 years ago

You might want to suggest

if node[:instance_role] =~ /^app/ || node[:instance_role] == 'solo'
  run "cd #{release_path}; RAILS_ENV=#{framework_env} bundle exec rake assets:precompile"
end

for http://docs.engineyard.com/asset-pipeline.html

instead of just

run "cd #{release_path}; RAILS_ENV=#{framework_env} bundle exec rake assets:precompile"

This speeds up deploy quite a bit especially if you have utility instances that are slower than the application instances.

janeday commented 12 years ago

Hi Ryan, Thanks very much for your suggestion. I've added it to the page.