Skip to content

Instantly share code, notes, and snippets.

@martinciu
Created September 5, 2011 21:24
Show Gist options
  • Save martinciu/1195951 to your computer and use it in GitHub Desktop.
Save martinciu/1195951 to your computer and use it in GitHub Desktop.
capistrano assets:precompile tack
namespace :deploy do
desc 'Bundle and minify the JS and CSS files'
task :precache_assets, :roles => :app do
run "cd #{release_path};RAILS_ENV=#{rails_env} bundle exec rake assets:precompile"
end
before 'deploy:symlink', 'deploy:precache_assets'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment