mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 09:12:51 +01:00
Fix path for release and current.
This commit is contained in:
parent
01ac931622
commit
81023b1eb3
@ -230,7 +230,7 @@ set('release_path', function () {
|
||||
}
|
||||
|
||||
$link = run("readlink {{deploy_path}}/release")->toString();
|
||||
return substr($link, 0, 1) === '/' ? $link : run('echo "$PWD"') . substr($link, 1);
|
||||
return substr($link, 0, 1) === '/' ? $link : get('deploy_path') . '/' . $link;
|
||||
});
|
||||
|
||||
|
||||
@ -239,7 +239,7 @@ set('release_path', function () {
|
||||
*/
|
||||
set('current_path', function () {
|
||||
$link = run("readlink {{deploy_path}}/current")->toString();
|
||||
return substr($link, 0, 1) === '/' ? $link : run('echo "$PWD"') . substr($link, 1);
|
||||
return substr($link, 0, 1) === '/' ? $link : get('deploy_path') . '/' . $link;
|
||||
});
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user