From 10fda596b37d7e4886ee95867e3b719b1a9d6c87 Mon Sep 17 00:00:00 2001 From: "kenji.suzuki" Date: Sat, 28 Nov 2015 20:14:15 +0900 Subject: [PATCH] add T option --- lib/capistrano/tasks/faster_assets.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/capistrano/tasks/faster_assets.rake b/lib/capistrano/tasks/faster_assets.rake index 30e3f8f..93724e1 100644 --- a/lib/capistrano/tasks/faster_assets.rake +++ b/lib/capistrano/tasks/faster_assets.rake @@ -42,7 +42,7 @@ namespace :deploy do info("Skipping asset precompile, no asset diff found") # copy over all of the assets from the last release - execute(:cp, '-r', latest_release_path.join('public', fetch(:assets_prefix)), release_path.join('public', fetch(:assets_prefix))) + execute(:cp, '-rT', latest_release_path.join('public', fetch(:assets_prefix)), release_path.join('public', fetch(:assets_prefix))) rescue PrecompileRequired execute(:rake, "assets:precompile") end