mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 01:02:24 +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
@ -76,7 +76,8 @@ task('deploy:update_code', function () {
|
|||||||
$depth = '';
|
$depth = '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cd('{{deploy_path}}');
|
||||||
if ($gitCache && has('previous_release')) {
|
if ($gitCache && has('previous_release')) {
|
||||||
try {
|
try {
|
||||||
run("$git clone $at $recursive -q --reference {{previous_release}} --dissociate $repository {{release_path}} 2>&1", $options);
|
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