Sha256: 60c1de3bf7e0825229ec7201a9e737b17efa85b3972f694602d36c81b69865c1
Contents?: true
Size: 794 Bytes
Versions: 5
Compression:
Stored size: 794 Bytes
Contents
module CapistranoDeployManagement module RailsAssets def self.load_into(configuration) configuration.load do use_recipe :rails namespace :deploy do namespace :assets do desc 'Clear application cache (e.g. Memcached).' task :refresh_cache, roles: :app do run "cd #{current_path} && rake cache:clear RAILS_ENV=#{rails_env}" # Requires this rake task: (include here!?) # namespace :cache do # desc 'Clear memcache' # task clear: :environment do # Rails.cache.clear # end # end end end end after 'deploy:update', 'deploy:assets:refresh_cache' end end end end
Version data entries
5 entries across 5 versions & 1 rubygems