mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 09:12:51 +01:00
permission denied for the git working direcotry
When using the "become" option in a host configuration, the work directory for git needs to be accesible for that user. For example, the homedirectory from the user I use to SSH isn't readable for the user I use to deploy, so it fails with a "permission denied". (also make sure to set the HOME enviroment variable so the correct git configuation can be read if needed)
This commit is contained in:
parent
a0a1e1da9c
commit
fe4dd4201a
@ -77,6 +77,7 @@ task('deploy:update_code', function () {
|
||||
}
|
||||
}
|
||||
|
||||
cd('{{deploy_path}}');
|
||||
if ($gitCache && has('previous_release')) {
|
||||
try {
|
||||
run("$git clone $at $recursive -q --reference {{previous_release}} --dissociate $repository {{release_path}} 2>&1", $options);
|
||||
|
Loading…
x
Reference in New Issue
Block a user