Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[asset pipeline] update capistrano task code

This code actually works.
  • Loading branch information...
commit f4d827b23df36e86e9a8ee903fac0d14bc3a065c 1 parent 9f888b0
@rhulse rhulse authored fxn committed
Showing with 2 additions and 5 deletions.
  1. +2 −5 railties/guides/source/asset_pipeline.textile
View
7 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>
Please sign in to comment.
Something went wrong with that request. Please try again.