Browse files

[asset pipeline] update capistrano task code

This code actually works.
  • Loading branch information...
Richard Hulse
Richard Hulse committed Jul 17, 2011
1 parent 98df498 commit 27b1bf3c1f74c9f4fd43749a319d8ff8fe8be326
Showing with 2 additions and 5 deletions.
  1. +2 −5 railties/guides/source/asset_pipeline.textile
@@ -273,11 +273,8 @@ rake assets:precompile
You can run this as part of a Capistrano deployment:
-before "deploy:symlink", "deploy:precompile_assets"
-desc "Compile pipeline assets"
-task :precompile_assets do
- run "#{release_path}; RAILS_ENV=#{rails_env} bundle exec rake assets:precompile"
+before 'deploy:symlink' do
+ run "cd #{release_path}; RAILS_ENV=#{rails_env} rake assets:precompile"

0 comments on commit 27b1bf3

Please sign in to comment.