aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/asset_pipeline.textile
diff options
context:
space:
mode:
authorRichard Hulse <richard.hulse@radionz.co.nz>2011-07-18 11:02:46 +1200
committerRichard Hulse <richard.hulse@radionz.co.nz>2011-07-18 11:02:46 +1200
commit27b1bf3c1f74c9f4fd43749a319d8ff8fe8be326 (patch)
tree8ae5b766f9e57410ae149dea79b9cba3586337ef /railties/guides/source/asset_pipeline.textile
parent98df4983b3ed332a6164f14d2ffc273adf7ca5a8 (diff)
downloadrails-27b1bf3c1f74c9f4fd43749a319d8ff8fe8be326.tar.gz
rails-27b1bf3c1f74c9f4fd43749a319d8ff8fe8be326.tar.bz2
rails-27b1bf3c1f74c9f4fd43749a319d8ff8fe8be326.zip
[asset pipeline] update capistrano task code
This code actually works.
Diffstat (limited to 'railties/guides/source/asset_pipeline.textile')
-rw-r--r--railties/guides/source/asset_pipeline.textile7
1 files changed, 2 insertions, 5 deletions
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>