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