Skip to content

Commit

Permalink
[asset pipeline] update capistrano task code
Browse files Browse the repository at this point in the history
This code actually works.
  • Loading branch information
Richard Hulse committed Jul 17, 2011
1 parent 98df498 commit 27b1bf3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions railties/guides/source/asset_pipeline.textile
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down

0 comments on commit 27b1bf3

Please sign in to comment.