From 27b1bf3c1f74c9f4fd43749a319d8ff8fe8be326 Mon Sep 17 00:00:00 2001
From: Richard Hulse <richard.hulse@radionz.co.nz>
Date: Mon, 18 Jul 2011 11:02:46 +1200
Subject: [asset pipeline] update capistrano task code

This code actually works.
---
 railties/guides/source/asset_pipeline.textile | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

(limited to 'railties/guides/source/asset_pipeline.textile')

diff --git a/railties/guides/source/asset_pipeline.textile b/railties/guides/source/asset_pipeline.textile
index 4a1c623436..652ced480f 100644
--- a/railties/guides/source/asset_pipeline.textile
+++ b/railties/guides/source/asset_pipeline.textile
@@ -273,11 +273,8 @@ rake assets:precompile
 You can run this as part of a Capistrano deployment:
 
 <erb>
-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"
 end
 </erb>
 
-- 
cgit v1.2.3

