Sha256: 84ddf6110977be125f18307565fae3be7c399a755c245dc399ff1e554e0abf66

Contents?: true

Size: 779 Bytes

Versions: 13

Compression:

Stored size: 779 Bytes

Contents

Capistrano::Configuration.instance.load do

  load 'deploy/assets' # http://guides.rubyonrails.org/asset_pipeline.html#in-production

  # http://www.bencurtis.com/2011/12/skipping-asset-compilation-with-capistrano/
  namespace :deploy do
    namespace :assets do
      #task :precompile, :roles => :web, :except => { :no_release => true } do
      #  from = source.next_revision(current_revision)
      #  if capture("cd #{latest_release} && #{source.local.log(from)} lib/assets/ vendor/assets/ app/assets/ | wc -l").to_i > 0
      #    run %Q{cd #{latest_release} && #{rake} RAILS_ENV=#{rails_env} #{asset_env} assets:precompile}
      #  else
      #    logger.info "Skipping asset pre-compilation because there were no asset changes"
      #  end
      #end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ms_deploy-0.2.3 lib/ms_deploy/recipes/assets.rb
ms_deploy-0.2.2 lib/ms_deploy/recipes/assets.rb
ms_deploy-0.2.1 lib/ms_deploy/recipes/assets.rb
ms_deploy-0.2.0 lib/ms_deploy/recipes/assets.rb
ms_deploy-0.1.9 lib/ms_deploy/recipes/assets.rb
ms_deploy-0.1.8 lib/ms_deploy/recipes/assets.rb
ms_deploy-0.1.7 lib/ms_deploy/recipes/assets.rb
ms_deploy-0.1.6 lib/ms_deploy/recipes/assets.rb
ms_deploy-0.1.5 lib/ms_deploy/recipes/assets.rb
ms_deploy-0.1.4 lib/ms_deploy/recipes/assets.rb
ms_deploy-0.1.3 lib/ms_deploy/recipes/assets.rb
ms_deploy-0.1.2 lib/ms_deploy/recipes/assets.rb
ms_deploy-0.1.1 lib/ms_deploy/recipes/assets.rb