diff options
author | Richard Hulse <richard.hulse@radionz.co.nz> | 2011-07-18 11:02:46 +1200 |
---|---|---|
committer | Richard Hulse <richard.hulse@radionz.co.nz> | 2011-07-18 11:02:46 +1200 |
commit | 27b1bf3c1f74c9f4fd43749a319d8ff8fe8be326 (patch) | |
tree | 8ae5b766f9e57410ae149dea79b9cba3586337ef /railties/guides/source/asset_pipeline.textile | |
parent | 98df4983b3ed332a6164f14d2ffc273adf7ca5a8 (diff) | |
download | rails-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.textile | 7 |
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> |