Created
March 26, 2012 09:40
-
-
Save andhapp/2204189 to your computer and use it in GitHub Desktop.
capistrano pre-compile assets for rails 3.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc "precompile the assets" | |
task :precompile_assets, :roles => :web, :except => { :no_release => true } do | |
run "cd #{current_path}; rm -rf public/assets/*" | |
run "cd #{current_path}; RAILS_ENV=production bundle exec rake assets:precompile" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment