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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user