Copy all files into asset volume

Adding -T to the copy command ensures that the files are copied at the
same level into the target directory whether it exists or not.

That allows us to drop the `/*` which was not picking up hidden files.

Fixes: https://github.com/basecamp/kamal/issues/465
This commit is contained in:
Donal McBreen
2023-09-15 08:07:48 +01:00
parent 60835d13a8
commit 3c12d1799c
3 changed files with 6 additions and 6 deletions

View File

@@ -234,6 +234,6 @@ class Kamal::Commands::App < Kamal::Commands::Base
end
def copy_contents(source, destination, continue_on_error: false)
[ :cp, "-rn", "#{source}/*", destination, *("|| true" if continue_on_error)]
[ :cp, "-rnT", "#{source}", destination, *("|| true" if continue_on_error)]
end
end