Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.
/ diversify Public archive

Commit

Permalink
build(deploy.rb) disable rsync for public/assets
Browse files Browse the repository at this point in the history
  • Loading branch information
Juneezee committed Mar 12, 2020
1 parent 8b556eb commit 5e05efc
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,11 @@ class PrecompileRequired < StandardError; end

on roles(:web), in: :parallel do |server|
run_locally do
execute :rsync,
"-a --delete public/packs/ #{fetch(:user)}@#{server.hostname}:#{release_path}/public/packs/"
execute :rsync,
"-a --delete public/assets/ #{fetch(:user)}@#{server.hostname}:#{release_path}/public/assets/"
execute :rsync, "-a --delete public/packs/ #{fetch(:user)}@#{server.hostname}:#{release_path}/public/packs/"
end
end

run_locally do
execute :rm, '-rf public/assets'
execute :rm, '-rf public/packs'
end
run_locally { execute :rm, '-rf public/packs' }
end
end

Expand Down

0 comments on commit 5e05efc

Please sign in to comment.