Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Capistrano task to compile assets
- # Make sure that you have `config.assets.compile = true` in production.rb when running this
- # This (the `compile=true`) won't be needed for Rails 3.1.1
- desc "Precompile assets on production"
- task :assets do
- run "cd #{release_path}; RAILS_ENV=production bundle exec rake assets:clean"
- run "cd #{release_path}; RAILS_ENV=production bundle exec rake assets:precompile"
- end
Add Comment
Please, Sign In to add comment