Skip to content

Instantly share code, notes, and snippets.

@caironoleto
Created November 11, 2011 00:58
Show Gist options
  • Save caironoleto/1356795 to your computer and use it in GitHub Desktop.
Save caironoleto/1356795 to your computer and use it in GitHub Desktop.
namespace :assets do
task :precompile, :roles => :web do
run "cd #{release_path} && RAILS_ENV=production bundle exec rake assets:precompile"
end
task :cleanup, :roles => :web do
run "cd #{release_path} && RAILS_ENV=production bundle exec rake assets:clean"
end
end
after "deploy:update_code", "assets:precompile"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment