Sha256: 92438fdfacc9bc080e26f82f7277ab316b0e3939f5e710485791347e21fc68b3

Contents?: true

Size: 459 Bytes

Versions: 48

Compression:

Stored size: 459 Bytes

Contents

namespace :deploy do
  desc "compiles assets locally then rsyncs"
  task :compile_assets_locally do
    run_locally do
      execute "RAILS_ENV=#{fetch(:rails_env)} bundle exec rake assets:precompile"
    end
    on roles(:app) do |role|
      run_locally do
        execute"rsync -av ./public/assets/ #{role.user}@#{role.hostname}:#{release_path}/public/assets/;"
      end
    end
    run_locally do
      execute "rm -rf ./public/assets"
    end
  end
end

Version data entries

48 entries across 48 versions & 2 rubygems

Version Path
teleporter-0.0.14 lib/generators/initial/templates/capistrano/tasks/compile_assets_locally.cap
teleporter-0.0.13 lib/generators/initial/templates/capistrano/tasks/compile_assets_locally.cap
teleporter-0.0.12 lib/generators/initial/templates/capistrano/tasks/compile_assets_locally.cap
teleporter-0.0.11 lib/generators/initial/templates/capistrano/tasks/compile_assets_locally.cap
capistrano-cookbook-0.0.5 lib/capistrano/cookbook/tasks/compile_assets_locally.cap
capistrano-cookbook-0.0.4 lib/capistrano/cookbook/tasks/compile_assets_locally.cap
capistrano-cookbook-0.0.3 lib/capistrano/cookbook/tasks/compile_assets_locally.cap
capistrano-cookbook-0.0.2 lib/capistrano/cookbook/tasks/compile_assets_locally.cap