Closed lfolco closed 2 weeks ago
Hey @lfolco 👋
Did you try to do it manually and run it though parse() ?
task('deploy:shared', function () {
$sharedPath = parse("{{deploy_path}}/shared");
...
}
Not sure I follow, in our setup our shared path does not reside within our deploy directory at all:
<root>/shared
-------site1
-------site2
<root>/site1
<root>/site2
So within the `deploy:shared` task, I would need to set the private variable `$sharedPath` (trying to avoid overriding the task if possible)
NOW I get what you want. I assumed, that the shared path is a variable you could use like {{shared_path}}
and somewhere is a set('shared_path', function() {... })
- but this is not the case 😮
I think this is something worth implementing 🤔
Then you could just overwrite the set and do whatever you want.
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]
Currently, in the
[shared.php](deploy:shared)
it gets the shared path as a child of the deploy path:We have a multi-site setup where the
shared
directory is a sibling of our other sites. It would be great if we could specify thatsharedPath
variable indeploy.php
.Thanks!
Upvote & Fund