Skip to content

Instantly share code, notes, and snippets.

@a-chernykh
Created August 1, 2012 11:46
Show Gist options
  • Select an option

  • Save a-chernykh/3226101 to your computer and use it in GitHub Desktop.

Select an option

Save a-chernykh/3226101 to your computer and use it in GitHub Desktop.
Precompile only digest version of static assets (2 times faster compilation)
namespace :deploy do
namespace :assets do
task :precompile, :roles => assets_role, :except => { :no_release => true } do
run "cd #{latest_release} && #{rake} RAILS_ENV=#{rails_env} #{asset_env} assets:precompile:primary"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment