mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-06-28 02:00:05 +02:00
More flexibility on releases path. Addresses Issue #7.
This commit is contained in:
parent
59cdb24087
commit
adb3a67924
|
@ -14,6 +14,10 @@ class Mage_Task_BuiltIn_Deployment_Releases
|
|||
$releasesDirectory = $this->_config->release('directory', 'releases');
|
||||
$symlink = $this->_config->release('symlink', 'current');
|
||||
|
||||
if (substr($symlink, 0, 1) == '/') {
|
||||
$releasesDirectory = rtrim($this->_config->deployment('to'), '/') . '/' . $releasesDirectory;
|
||||
}
|
||||
|
||||
$currentCopy = $releasesDirectory . '/' . $this->_config->getReleaseId();
|
||||
|
||||
// Fetch the user and group from base directory
|
||||
|
|
Loading…
Reference in a new issue