Closed alexander-schranz closed 1 week ago
Can't you do:
set('rsync', function () {
return array_merge(get('rsync'), [
'exclude' => [
'.git',
'deploy.php',
],
]);
});
Hello, Same issue when importing in the deploy.php a yml file with custom conf Placing it in the dpeloy.php makes no sens as the list of excluded files can changed from projects to another.
rsync:
exclude:
- '.git*'
- .bundler
- deploy.php
We are obliged to put the whole thing
rsync:
exclude:
- '.git*'
- .bundler
- deploy.php
flags: 'rzcE'
options: ['delete', 'delete-after', 'force']
timeout: 3600
include: []
filter: []
exclude-file: false
include-file: false
filter-file: false
filter-perdir: false
This issue has been automatically closed. Please, open a discussion for bug reports and feature requests.
Read more: [https://github.com/deployphp/deployer/discussions/3888]
Deployment OS: Mac OSX Monterey
Please, provide a minimal reproducible example of deploy.php
https://deployer.org/docs/7.x/contrib/rsync
When defining
rsync
options only withexclude
:The deploy will fail:
Not sure if it would be possible to define defaults somewhere else so I need not configure all rsync options.
PS: I hope its fine that I created seperate issues and not did pack all into one big issue.
Upvote & Fund